diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-05-31 09:58:31 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-05-31 09:58:31 +0100 |
commit | 3aa93c1bee882d433e52f0313d27690c12f027dd (patch) | |
tree | 505ab84d25fc5a9a9f88242e5236e53a451ba87c /example.py | |
parent | 47f83c04ecd2e68eea55e65ac52711547d46c6b8 (diff) | |
download | cliapp-3aa93c1bee882d433e52f0313d27690c12f027dd.tar.gz |
Make default log level be debug.
I find that whenever I actually want logging, I want
it at the debug level. Since the default is to not write
a log file, I might as well make that the default.
Diffstat (limited to 'example.py')
-rw-r--r-- | example.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -42,6 +42,7 @@ class ExampleApp(cliapp.Application): self.output.write('There were %s matches.\n' % self.matches) def process_input_line(self, name, line): + logging.debug('processing %s:%s' % (name, self.lineno)) for pattern in self.settings['pattern']: if pattern in line: self.output.write('%s:%s: %s' % (name, self.lineno, line)) |