You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Possibility to configure number of error message lines in reports #2576
My temporary workaround is to use sed in cron (it is executed very often to avoid situation, when after some updates we have MAX_ERROR_LINES set back to 40):
sudo sed -i 's/_MAX_ERROR_LINES = 40/_MAX_ERROR_LINES = 999/g' /usr/local/lib/python2.7/dist-packages/robot/utils/text.py
In my opinion there is no need to make it configurable, for example, with a new additional Robot's argument. I would say, if user sets --loglevel TRACE it means that he wants to have as much logs as possible, so maybe a good idea is to set _MAX_ERROR_LINES to 999 lines (or whatever, bigger number) when loglevel is set to TRACE and some smaller number when loglevel is set to INFO.
changed the title [-]Hardcoded value of _MAX_ERROR_LINES variable[/-][+]Possibility to configure number of error message lines in reports[/+]on Oct 10, 2018
PR #2589 adds new --maxerrorlines option that allows configuring the number of error message lines in reports. There are some changes still required before the PR can be merged, but I don't see problems getting it into RF 3.1.
Activity
pekkaklarck commentedon Apr 12, 2017
Do you propose making this configurable somehow? I'm OK with that but it needs someone to provide a PR.
mchfrnc commentedon Apr 12, 2017
In my opinion there is no need to make it configurable, for example, with a new additional Robot's argument. I would say, if user sets --loglevel TRACE it means that he wants to have as much logs as possible, so maybe a good idea is to set _MAX_ERROR_LINES to 999 lines (or whatever, bigger number) when loglevel is set to TRACE and some smaller number when loglevel is set to INFO.
pekkaklarck commentedon Apr 12, 2017
I don't think log level should affect this. You already now see the full error message in the log file regardless the log level you use.
[-]Hardcoded value of _MAX_ERROR_LINES variable[/-][+]Possibility to configure number of error message lines in reports[/+]pekkaklarck commentedon Oct 10, 2018
PR #2589 adds new
--maxerrorlinesoption that allows configuring the number of error message lines in reports. There are some changes still required before the PR can be merged, but I don't see problems getting it into RF 3.1.Code and doc tuning related to --maxerrorlines