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

DM-6999: Logging framework migration #9

Merged
merged 2 commits into from Sep 2, 2016
Merged

DM-6999: Logging framework migration #9

merged 2 commits into from Sep 2, 2016

Conversation

hsinfang
Copy link

@hsinfang hsinfang commented Aug 4, 2016

No description provided.

Hsin-Fang Chiang added 2 commits August 25, 2016 12:00
Based on 6428a77
- replace pex.logging logdebug using lsst.log.Log TRACE level
- replace pex.logging at -9 using lsst.log.Log DEBUG level
@@ -207,7 +207,7 @@ def addSchemaKeys(self, schema):
'deblend_hasStrayFlux', type='Flag',
doc=('This source was assigned some stray flux'))

self.log.logdebug('Added keys to schema: %s' % ", ".join(str(x) for x in (
self.log.trace('Added keys to schema: %s', ", ".join(str(x) for x in (
self.nChildKey, self.psfKey, self.psfCenterKey, self.psfFluxKey,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the change in level from debug to trace?

Copy link
Author

Choose a reason for hiding this comment

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

It was discussed previously here (and noted in the commit message). For this logger named "meas_deblender.baseline", two tracing levels are currently used in master: a less verbose log.log(-9, ...) and a more verbose log.logdebug(...). So the former maps to log.debug() and the latter maps to log.trace() in the conversion.

@hsinfang hsinfang merged commit 5c242c2 into master Sep 2, 2016
@ktlim ktlim deleted the tickets/DM-6999 branch August 25, 2018 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants