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

add support for 'devel' log level #1815

Merged
merged 3 commits into from
Nov 10, 2016
Merged

Conversation

boegel
Copy link
Member

@boegel boegel commented Jun 22, 2016

Currently, debug logs are very verbose, with lots of information being logged that is only really useful when developing EasyBuild features.

One particular example in the logging by the toolchain mechanism.

With this devel log level in place, we could avoid including stuff like this in debug logs, while avoiding having to remove the log.debug statements entirely.

Once a review of all current log.debug statements is done and the relevant ones are 'downgraded' to log.devel, we can consider make debug logging the default in EasyBuild v3.0.0 (potentially combined with zipping logs by default).

cc @wpoely86, @ocaisa

@boegel boegel added this to the v2.9.0 milestone Jun 22, 2016
@boegel
Copy link
Member Author

boegel commented Jun 22, 2016

relates to #1353 and #1796

@boegel
Copy link
Member Author

boegel commented Nov 7, 2016

@wpoely86 please review?

The 2nd step here would be to actually switch to using log.devel in some places in the framework (e.g. a large part of the toolchain mechanism), to make debug logs more lightweight/focused.

@@ -58,6 +59,10 @@
DRY_RUN_MODULES_INSTALL_DIR = None


DEVEL_LOG_LEVEL = logging.DEBUG - 1
Copy link
Member

Choose a reason for hiding this comment

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

not +1 ?

Copy link
Member Author

Choose a reason for hiding this comment

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

no, it's a lower logging level; log.devel messages should not be included when using --debug, but log.debug messages should be included when using --devel (see also the added test)

Copy link
Member Author

Choose a reason for hiding this comment

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

@wpoely86 so, is this good to go?

@boegel
Copy link
Member Author

boegel commented Nov 10, 2016

Thanks for the review @wpoely86!

@boegel boegel merged commit 95b074b into easybuilders:develop Nov 10, 2016
@boegel boegel deleted the log_devel branch November 10, 2016 10:52
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