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

Set log level at runtime #1056

Merged
merged 6 commits into from Feb 25, 2016
Merged

Set log level at runtime #1056

merged 6 commits into from Feb 25, 2016

Conversation

bilke
Copy link
Member

@bilke bilke commented Feb 24, 2016

  • Added -l command line arguments to OGS cli and the testrunner. Possible values: none, error, warn, info, debug, all.
  • make tests log-level is now warn (this suppresses verbose logging in recent Jenkins builds).

@@ -79,7 +79,8 @@ int main(int argc, char *argv[])
"(http://www.opengeosys.org) "
"Distributed under a Modified BSD License. "
"See accompanying file LICENSE.txt or "
"http://www.opengeosys.org/project/license",
"http://www.opengeosys.org/project/license\n"
"version: " + BaseLib::BuildInfo::git_describe,
' ',
BaseLib::BuildInfo::git_describe);
Copy link
Member

Choose a reason for hiding this comment

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

Just checking. Will the version number displayed only once?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, the second BaseLib::BuildInfo::git_describe is only shown when running ogs --version.

LOGOG_SHUTDOWN();
}

void SetFormatter(std::unique_ptr<logog::Formatter> formatter)
Copy link
Collaborator

Choose a reason for hiding this comment

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

There should be && added. Otherwise it will not work if you pass non-temporaries to that method. ✅

@chleh
Copy link
Collaborator

chleh commented Feb 24, 2016

But in general I like the idea!

@TomFischer
Copy link
Member

👍

bilke added a commit that referenced this pull request Feb 25, 2016
@bilke bilke merged commit 01d7d6f into ufz:master Feb 25, 2016
@bilke bilke deleted the log-level branch February 25, 2016 09:22
@ogsbot
Copy link
Member

ogsbot commented Jun 19, 2020

OpenGeoSys development has been moved to GitLab.

See this pull request on GitLab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants