-
Notifications
You must be signed in to change notification settings - Fork 16
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
Use Log output instead of standard out #62
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #62 +/- ##
========================================
Coverage 53.06% 53.06%
========================================
Files 217 217
Lines 14644 14644
Branches 1213 1213
========================================
Hits 7771 7771
Misses 6873 6873 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I wasn't aware of this macro, I used |
@tweska As far as I know @MircoValentiniECMWF also had longer discussions with @geier1993 and @dsarmany of having multiple MULTIO flags to enable debug on specific code regions. e.g. Multio_statistic ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we still want to print these also in no-debug runs.
@@ -61,14 +62,14 @@ ConfigAndPaths configureFromEnv(config::LocalPeerTag tag) { | |||
|
|||
if (::getenv("MULTIO_PLANS")) { | |||
std::string cfg(::getenv("MULTIO_PLANS")); | |||
std::cout << "MultIO initialising with plans " << cfg << std::endl; | |||
LOG_DEBUG_LIB(LibMultio) << "MultIO initialising with plans " << cfg << std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may want to use eckit::Log::info()
, no? I think there is no harm printing this all the time as the output is fairly limited.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should consider printing this only from one server
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea of only printing it from one server. This would be another reason to have this IO-Server "Master".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may want to use
eckit::Log::info()
, no? I think there is no harm printing this all the time as the output is fairly limited.
Well for smaller runs it is limited but if they run larger production runs it does get more annoying. The information in general is useful, we probably just don't want to have it printed so often.
Essentially this is a non urgent, "make it look prettier", idea, to reduce log messages that can't be turned off. The output scripts are annoying to search through as it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I can just merge this and see how much it is missed. Then we can come up with a cleverer solution.
this is a suggestion to avoid spamming the output in runs. With many IO servers this can sometimes become a long list.