-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Writing messages to debug file and to console is delayed when timeouts are used #3644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is most likely caused by the fix to #2839 in RF 3.1. Could you also show what your |
Note: I changed timeout to
the logging happens in realtime when |
i am facing the same exact issue.
if i remove/comment out the timeout in test case, then logging is Realtime in logfile and everything works fine
also, same issue if i use a default timeout
is there a workaround or a fix in queue for this please ? |
Logged messages are cached , not written directly to disk, when using timeouts to avoid corrupting output.xml if a timeout expires exactly when a message is written. See #2839 for details about that very severe problem. To avoid caching, we needed to come up with some other way to protect logger from timeouts. Until that, a workaround is not using timeouts (they should in general be used only when absolutely necessary) or logging to some external file or to |
Thanks @pekkaklarck
i think one way would be to downgrade our robot to 3.0 version where this worked fine (And we had not issues with corrupt xml) until there is a fix. |
This problems has been fixed as a byproduct of fixing a problem that logged messages do not respect the current log level when timeouts are used (#5395). Although the root cause in these two issues is exactly the same, the effect is different and I won't close this as a duplicate of the other issue. I also want to add a test to make sure the problem is gone and won't reappear. |
Uh oh!
There was an error while loading. Please reload this page.
Steps to reproduce:
Observed
Expected
Note: I see the realtime logging happening to console output and debugfile in the v3.0.4. But not in v3.2.1
The text was updated successfully, but these errors were encountered: