Skip to content

Commit

Permalink
Added back event logging with new trace level.
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzeman committed Mar 24, 2014
1 parent 1b7143c commit 45a4699
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Trakttv.bundle/Contents/Code/core/eventing.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def ensure_exists(cls, key):
return

cls.events[key] = EventHandler(key)
log.trace('Created event with key "%s"', key)

@classmethod
def subscribe(cls, key, handler):
Expand All @@ -79,6 +80,7 @@ def unsubscribe(cls, key, handler):
def fire(cls, key, *args, **kwargs):
if key not in SILENT_FIRE:
attributes = join_attributes(args=args, kwargs=kwargs)
log.trace("fire '%s'%s", key, (' [%s]' % attributes) if attributes else '')

cls.ensure_exists(key)
return cls.events[key].fire(*args, **kwargs)

0 comments on commit 45a4699

Please sign in to comment.