Skip to content

Commit

Permalink
add constant for pyrollbar log name
Browse files Browse the repository at this point in the history
  • Loading branch information
ezarowny committed Jul 6, 2016
1 parent 1f4d857 commit 98f5743
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion rollbar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
from rollbar.lib import dict_merge, parse_qs, text, transport, urljoin, iteritems

__version__ = '0.13.1'
log = logging.getLogger(__name__)
__log_name__ = 'rollbar'
log = logging.getLogger(__log_name__)


# import request objects from various frameworks, if available
Expand Down
2 changes: 1 addition & 1 deletion rollbar/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def setHistoryLevel(self, level):
logging.Handler.setLevel(self, level)

def emit(self, record):
if record.name == 'rollbar':
if record.name == rollbar.__log_name__:
return

level = record.levelname.lower()
Expand Down

0 comments on commit 98f5743

Please sign in to comment.