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
Lately, the scripts that include loggers have started failing. We have seen that you have setted a default configuration of the tools-logger package, that, as you say in the .orogen, fails:
# Controls whether the logger should overwrite or timestamp an existing file, if it already exists.
# The default is to fail, but one of these flags is needed, if one wants to use safe temporary files as targets.
# The flags are mutually exclusive, therefore the task will fail if both are true.
property 'overwrite_existing_files', '/bool', false
property 'auto_timestamp_files', '/bool', false
attribute 'current_file', 'std/string'
Changing one of the above parameters ('overwrite_existing_files' or 'auto_timestamp_files') in this file to 'true' makes the logger work fine for us. Nevertheless, I'm afraid this is not a good solution, since we have diverged from your master branch, thus won't be able to pull future updates of this package. Is there a better procedure to keep this parameters tuned without diverging from you?
Thank you very much.
Best regards,
Gonzalo
The text was updated successfully, but these errors were encountered:
Wait ... The default configuration does not always fail.... It fails if you try to start the logger with an existing filename, which would overwrite the old file.
I do apologize if we did change a behavior that you were relying on, especially since that was done without warning. In your case, you could set overwrite_existing_files to true to get back to where you were. You should be doing it in your scripts instead of within the orogen file to be able to update rock-core freely in the future.
However, I would strongly suggest changing your scripts to avoid losing log files, either by (simply) setting auto_timestamp_files to true or by generating a timestamped folder in which you store all of them (the strategy we adopted with Syskit)
Dear Rock-core developers:
Lately, the scripts that include loggers have started failing. We have seen that you have setted a default configuration of the tools-logger package, that, as you say in the .orogen, fails:
Changing one of the above parameters ('overwrite_existing_files' or 'auto_timestamp_files') in this file to 'true' makes the logger work fine for us. Nevertheless, I'm afraid this is not a good solution, since we have diverged from your master branch, thus won't be able to pull future updates of this package. Is there a better procedure to keep this parameters tuned without diverging from you?
Thank you very much.
Best regards,
Gonzalo
The text was updated successfully, but these errors were encountered: