summaryrefslogtreecommitdiff
path: root/example.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-05-31 09:58:31 +0100
committerLars Wirzenius <liw@liw.fi>2011-05-31 09:58:31 +0100
commit3aa93c1bee882d433e52f0313d27690c12f027dd (patch)
tree505ab84d25fc5a9a9f88242e5236e53a451ba87c /example.py
parent47f83c04ecd2e68eea55e65ac52711547d46c6b8 (diff)
downloadcliapp-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.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/example.py b/example.py
index 93b1059..7991948 100644
--- a/example.py
+++ b/example.py
@@ -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))