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

Pex changed for default logging #29

Merged
merged 1 commit into from Aug 24, 2018
Merged

Pex changed for default logging #29

merged 1 commit into from Aug 24, 2018

Conversation

gcomoretto
Copy link
Collaborator

No description provided.

Copy link
Contributor

@PaulPrice PaulPrice left a comment

Choose a reason for hiding this comment

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

Please be sure you've tested the change, and see @timj's question about using python's warnings.

@@ -159,8 +162,7 @@ def getEnvironmentPackages():
from eups import Eups
from eups.Product import Product
except ImportError:
from lsst.pex.logging import getDefaultLog
getDefaultLog().warn("Unable to import eups, so cannot determine package versions from environment")
log.warning("Unable to import eups, so cannot determine package versions from environment")
Copy link
Contributor

Choose a reason for hiding this comment

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

Have you tested this? I thought it was log.warn.

Copy link
Member

Choose a reason for hiding this comment

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

Yes. It works (we noticed this because eups did not load for @gcomoretto). Python logging prefers logging.warning and deprecates logging.warn (we don't use lsst.log here)

@gcomoretto gcomoretto merged commit 7dbfac6 into master Aug 24, 2018
@gcomoretto gcomoretto deleted the tickets/DM-15511 branch August 24, 2018 17:31
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

3 participants