Update logging
patch e5f5064add4337d64b2845281f6997b7b46b2312
Author: Peter Bui <pbui@bx612.space>
Date: Fri Jul 26 03:27:47 CEST 2019
* Update logging
diff -rN -u old-irgramd/irtelegramd.py new-irgramd/irtelegramd.py
--- old-irgramd/irtelegramd.py 2024-11-22 22:07:46.895837684 +0100
+++ new-irgramd/irtelegramd.py 2024-11-22 22:07:46.895837684 +0100
@@ -38,8 +38,6 @@
self.port = port
self.config_dir = config_dir or os.path.expanduser('~/.config/irtelegramd')
- self.logger.info('Configuration Directory: %s', self.config_dir)
-
if not os.path.exists(self.config_dir):
os.makedirs(self.config_dir)
@@ -49,7 +47,8 @@
def run(self):
self.listen(self.port, self.address)
- self.logger.info('Starting server on %s:%s', self.address, self.port)
+ self.logger.info('IRTelegramd listening on %s:%s', self.address, self.port)
+ self.logger.info('Configuration Directory: %s', self.config_dir)
tornado.ioloop.IOLoop.current().start()