diff --git a/main.py b/main.py index a6f929c..b920247 100755 --- a/main.py +++ b/main.py @@ -25,9 +25,10 @@ def __init__(self): logging.basicConfig( filename=self.config.log_file(), level=self.config.log_level(), - format='%(asctime)s - %(levelname)s - %(message)s' + format='%(asctime)s/%(created)f:%(levelname)s:%(message)s' ) super().__init__(pidfile=self.config.pid_file()) + logging.info('Starting') logging.debug(pprint.pformat(self.config.config)) # mp.set_start_method('forkserver') diff --git a/src/writer/chcsvwriter.py b/src/writer/chcsvwriter.py index 9ca27d7..99a9054 100644 --- a/src/writer/chcsvwriter.py +++ b/src/writer/chcsvwriter.py @@ -58,7 +58,8 @@ def insert(self, event_or_events=None): sql, ) - logging.info('starting %s', bash) + logging.info('starting clickhouse-client process') + logging.debug('starting %s', bash) os.system(bash) pass