Skip to content

Load log settings before all other settings. #174

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

Merged
merged 2 commits into from
Aug 16, 2022
Merged

Load log settings before all other settings. #174

merged 2 commits into from
Aug 16, 2022

Conversation

pmaanen
Copy link
Contributor

@pmaanen pmaanen commented Aug 16, 2022

Loading the log settings last causes heaps of INFO messages to be
displayed by lsl::get_local_interfaces() even if the user has set log level to -3.
Changing the order causes less ui clutter and respects the users choices.

Loading the log settings last causes heaps of INFO messages to be
displayed by lsl::get_local_interfaces() even if the user has set log level to -3.
Changing the order causes less ui clutter and respects the users choices.
} else
loguru::g_stderr_verbosity = log_level;

// log config filename only after setting the verbosity level
Copy link
Collaborator

Choose a reason for hiding this comment

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

This log statement should remain at the end. We should only see "Configuration loaded ..." after we've finished parsing the loaded config.

@cboulay
Copy link
Collaborator

cboulay commented Aug 16, 2022

Thanks for the PR. Don't worry about the ubuntu-18.04 or macOS-latest build failures.

I ask that you address the one comment I left inline then this looks good to merge.

@cboulay cboulay merged commit 254627a into sccn:master Aug 16, 2022
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.

2 participants