From 857b1c4d8263e4de6e70ca008c5ae096ff3f8353 Mon Sep 17 00:00:00 2001 From: jngrt Date: Thu, 6 Nov 2014 15:41:35 +0100 Subject: [PATCH] logging tweaks --- main.py | 2 +- pylog.conf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 5df7181..943b923 100755 --- a/main.py +++ b/main.py @@ -60,7 +60,7 @@ class Meshenger: sys.exit() while True: - logger.info('Entering main loop') + logger.debug('Entering main loop') # if len(self.devices) > 0: logger.info('found %s device(s)', len(self.devices)) diff --git a/pylog.conf b/pylog.conf index bfb7337..47f3254 100644 --- a/pylog.conf +++ b/pylog.conf @@ -19,6 +19,7 @@ propagate=0 [handler_fileHandler] class=handlers.RotatingFileHandler +level=INFO args=('log/meshenger.log','a','maxBytes=10000','backupCount=5') formatter=simpleFormatter