logging and updata registers file

This commit is contained in:
2019-07-13 21:08:07 +01:00
parent c6552317db
commit 34766a0d32
4 changed files with 22 additions and 11 deletions

View File

@ -17,7 +17,7 @@ import logging
if __name__ == "__main__":
config = Config.Config()
logger = logging.getLogger(config.appName)
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
fh = logging.FileHandler(config.logFile)
fh.setLevel(logging.DEBUG)
@ -57,4 +57,4 @@ if __name__ == "__main__":
cs = CmdServer.CmdServer(config, nf, datapoints)
cs.start()
logger.debug('CmdServer started')
logger.debug('CmdServer started')