~virtualbricks/virtualbrick/1.x

« back to all changes in this revision

Viewing changes to virtualbricks/_log.py

  • Committer: Marco Giusti
  • Date: 2014-08-02 16:58:05 UTC
  • Revision ID: marco.giusti@gmail.com-20140802165805-4tw4nb5kwodec3n3
BetterĀ logĀ support

Show diffs side-by-side

added added

removed removed

Lines of Context:
726
726
 
727
727
 
728
728
    def __call__(self, event):
 
729
        # if the event comes from the legacy machinery, do not send it back
 
730
        if "message" in event and "isError" in event:
 
731
            return
729
732
        prefix = "[{log_namespace}#{log_level.name}] ".format(**event)
730
733
 
731
734
        level = event["log_level"]