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-7000: Convert tracing to use lsst.log and remove pex.logging #38

Merged
merged 5 commits into from Nov 22, 2016

Conversation

hsinfang
Copy link

No description provided.

Hsin-Fang Chiang added 4 commits November 9, 2016 18:20
Replace tracing under the component "lsst.ip.diffim" using
lsst.log at DEBUG level, with the spcific component in its
logger name and prefixed with TRACE<n>.

Generally, <n> is 1 lower than the original Trace verbosity
in pex.logging; i.e. pex.logging Trace at 1-6 are converted to
TRACE0, TRACE1, TRACE2, TRACE3, TRACE4, and TRACE5.
For example, "lsst.ip.diffim.comp" with pex.logging Trace3 is
replaced by "TRACE2.ip.diffim.comp".

Except
- the logger "lsst.ip.diffim.KernelCandidateDetection"
  where Trace 14678 were used: converted to 12345
- the loggers in KernelSolution.cc
  where Trace 4567 were used: converted to 2345
- lsst.ip.diffim.ImageStatistics
  where Trace 67 were used: converted to TRACE4 and TRACE5

Also replace the level control placeholders in tests.
These loggers use no more than one level in tracing.
Convert them into debug logging with lsst.log.
and remove pex_logging form ups table.
Copy link
Contributor

@djreiss djreiss left a comment

Choose a reason for hiding this comment

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

Were you able to compare the logging output of the examples (at least the ones that were able to be run) and ensure that the output of the new code is sufficiently similar to the old output?

@hsinfang
Copy link
Author

Most of the examples do not run, but examples/snapPsfMatchTask.py does. I pasted its outputs (before and after this patch) to Jira.

Yes, the outputs are similar with the minor format differences.

@hsinfang hsinfang merged commit 3ea8fbc into master Nov 22, 2016
@ktlim ktlim deleted the tickets/DM-7000 branch August 25, 2018 06:44
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.

None yet

2 participants