logging tweaks
This commit is contained in:
parent
e4e8b7cf00
commit
857b1c4d82
2
main.py
2
main.py
@ -60,7 +60,7 @@ class Meshenger:
|
|||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
logger.info('Entering main loop')
|
logger.debug('Entering main loop')
|
||||||
#
|
#
|
||||||
if len(self.devices) > 0:
|
if len(self.devices) > 0:
|
||||||
logger.info('found %s device(s)', len(self.devices))
|
logger.info('found %s device(s)', len(self.devices))
|
||||||
|
@ -19,6 +19,7 @@ propagate=0
|
|||||||
|
|
||||||
[handler_fileHandler]
|
[handler_fileHandler]
|
||||||
class=handlers.RotatingFileHandler
|
class=handlers.RotatingFileHandler
|
||||||
|
level=INFO
|
||||||
args=('log/meshenger.log','a','maxBytes=10000','backupCount=5')
|
args=('log/meshenger.log','a','maxBytes=10000','backupCount=5')
|
||||||
formatter=simpleFormatter
|
formatter=simpleFormatter
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user