Skip to content
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

Disable creation of unnecessary log files #6315

Merged
merged 1 commit into from Apr 29, 2020
Merged

Disable creation of unnecessary log files #6315

merged 1 commit into from Apr 29, 2020

Conversation

AndrejOrsula
Copy link
Contributor

OS: Ubuntu 18.04
SDK: 2.34.0
Device: D415

Issue Description: I am experiencing a purely cosmetic issue, where calls to log_to_console() create log files, i.e. yyyy-MM-dd-HH_mm_ss.log, that remain empty because no logging to file with log_to_file() was requested. I suspect log_to_callback() to result in a similar behaviour as it also calls open() internally, but I have not tested my hypothesis. I assume that this behaviour is unintentional.

Suggested Solution: Configure filename for logging ONLY if it was requested, in which case minimum_file_severity is different than RS2_LOG_SEVERITY_NONE.

@AndrejOrsula
Copy link
Contributor Author

@dorodnic
Copy link
Contributor

Hi @AndrejOrsula
Thank you very much for the contribution.

Copy link
Contributor

@dorodnic dorodnic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@dorodnic dorodnic merged commit 9d0c65e into IntelRealSense:development Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants