-
Notifications
You must be signed in to change notification settings - Fork 3
Fix regressions from v2 (#212) #218
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
Conversation
The reason why you get the double output is that loggers with name starting in
And I don't know why the DEBUG level is set to the top-level kadi logger. |
@javierggt - yes, I understood the propagation. It was only the fact that the level was at DEBUG that makes no sense. I looked pretty hard through the code trying to find where that might happen and failed. Another piece of this mystery is that it only seemed to happen when I ran this in an installed environment via I'm pretty sure there is a reason but I haven't found it. |
My plan is to come back later with less time pressure and rework all the logging to do it consistently and correctly. |
Is this PR supposed to fix these errors?
|
I'm running again. The scripts were not installed. |
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 checked that testr passes
Description
This fixes some regression (ska_testr) problems introduced by #212.
scripts
subpackage those relative imports were broken. Another reason to avoid relative imports in most (but not all) situations.kadi_update_cmds_v1
back to the originalkadi_update_cmds
. This should fix the error in ska_testr where it failed to find the expected script.kadi
. Modules that initialized a logger with__name__
were generating output from two loggers. For some reason that is actually still a mystery to me, when I did a local install test of kadi the top-level logger was getting a log-level of DEBUG and generating unexpected logging output. I'd still like to track that down, but using new logger names that don't start withkadi.
fixes this.Testing
Functional testing
Installed into a test environment, copied the current (but a few days out of date) kadi data (cmds v1, v2 and events) into a local test directory (not the git repo), and successfully ran:
Then ran ska_testr in the test env and got a PASS (with sot/ska_testr#51)