Browse Source

logging tweaks

logging
jngrt 10 years ago
parent
commit
857b1c4d82
  1. 2
      main.py
  2. 1
      pylog.conf

2
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))

1
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

Loading…
Cancel
Save