~ubuntu-branches/debian/sid/calibre/sid

« back to all changes in this revision

Viewing changes to src/calibre/utils/logging.py

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2014-02-27 07:48:06 UTC
  • mto: This revision was merged to the branch mainline in revision 74.
  • Revision ID: package-import@ubuntu.com-20140227074806-64wdebb3ptosxhhx
Tags: upstream-1.25.0+dfsg
ImportĀ upstreamĀ versionĀ 1.25.0+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
                      }
41
41
 
42
42
    def prints(self, level, *args, **kwargs):
43
 
        kwargs['file'] = self.stream
44
43
        from calibre.utils.terminal import ColoredStream
45
44
        with ColoredStream(self.stream, self.color[level]):
46
45
            self._prints(*args, **kwargs)
148
147
        self.warn  = self.warning = partial(self.prints, WARN)
149
148
        self.error = partial(self.prints, ERROR)
150
149
 
151
 
 
152
150
    def prints(self, level, *args, **kwargs):
153
151
        if level < self.filter_level:
154
152
            return