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

Fix a log-related rename mixup #1095

Merged
merged 2 commits into from Jun 6, 2017

Conversation

M4rtinK
Copy link
Contributor

@M4rtinK M4rtinK commented Jun 5, 2017

The first commit adds a getter for the "anaconda" root logger and the second commit fixes the actual mixup.

@M4rtinK M4rtinK added the master Please, use the `f39` label instead. label Jun 5, 2017
@M4rtinK
Copy link
Contributor Author

M4rtinK commented Jun 5, 2017

jenkins, test this please

2 similar comments
@M4rtinK
Copy link
Contributor Author

M4rtinK commented Jun 5, 2017

jenkins, test this please

@M4rtinK
Copy link
Contributor Author

M4rtinK commented Jun 5, 2017

jenkins, test this please

Copy link
Member

@jkonecny12 jkonecny12 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 otherwise. For the test to run properly you need to do a rebase.

@@ -1125,7 +1125,9 @@ def execute(self, *args):
# not set from the command line
level = anaconda_logging.logLevelMap[self.level]
anaconda_logging.logger.loglevel = level
anaconda_logging.setHandlersLevel(anaconda_logging, level)
# set log level for the "anaconde" root logger
Copy link
Member

Choose a reason for hiding this comment

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

Typo: anaconde

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, thanks! :)

Turns out there are still cases where working directly with the
"anaconda" root logger makes sense, such as setting it's log level.
In this case we want to set the log level of the "anaconda" root logger,
but this apparently got mixed up during the anaconda_log ->
anaconda_logging rename and subsequent switch to structured logging.

So fix the mixup and correctly use the "anaconda" root logger in the
setHandlersLevel() call.
@M4rtinK M4rtinK force-pushed the master-fix_kickstart_logging branch from 23085c1 to 878ab21 Compare June 6, 2017 11:05
@M4rtinK M4rtinK merged commit 8990c6e into rhinstaller:master Jun 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
master Please, use the `f39` label instead.
2 participants