Skip to content

Commit

Permalink
Add verbosity to logging message.
Browse files Browse the repository at this point in the history
  • Loading branch information
malthe committed Oct 19, 2012
1 parent bbf3a57 commit 9f0eeef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/z3c/autoinclude/dependency.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def includableInfo(self, zcml_to_look_for):
try:
module = resolve(dotted_name)
except ImportError, exc:
logging.warn(exc)
logging.getLogger("z3c.autoinclude").warn(
"resolve(%r) raised import error: %s" % (dotted_name, exc))
continue
for candidate in zcml_to_look_for:
candidate_path = os.path.join(
Expand Down

0 comments on commit 9f0eeef

Please sign in to comment.