Permalink
Browse files

Make this log obj available at the module level for monkey patching.

  • Loading branch information...
1 parent 0120783 commit 88d7a910957ee3719ecad67f4e384ac50f3e7435 @ralphbean ralphbean committed Mar 5, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 fedmsg/meta/__init__.py
View
@@ -59,6 +59,7 @@
from fedmsg.meta.default import DefaultProcessor
import logging
+log = logging.getLogger("fedmsg")
class ProcessorsNotInitialized(Exception):
@@ -90,7 +91,6 @@ def make_processors(**config):
try:
processors.append(processor.load()(_, **config))
except Exception as e:
- log = logging.getLogger("fedmsg")
log.warn("Failed to load %r processor." % processor.name)
log.warn(str(e))

0 comments on commit 88d7a91

Please sign in to comment.