Skip to content

Commit 87b5b25

Browse files
authored
Merge pull request #35 from sunsingerus/master
logging enh
2 parents 6a2b00d + b596c49 commit 87b5b25

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ def __init__(self):
2525
logging.basicConfig(
2626
filename=self.config.log_file(),
2727
level=self.config.log_level(),
28-
format='%(asctime)s - %(levelname)s - %(message)s'
28+
format='%(asctime)s/%(created)f:%(levelname)s:%(message)s'
2929
)
3030
super().__init__(pidfile=self.config.pid_file())
31+
logging.info('Starting')
3132
logging.debug(pprint.pformat(self.config.config))
3233
# mp.set_start_method('forkserver')
3334

src/writer/chcsvwriter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ def insert(self, event_or_events=None):
5858
sql,
5959
)
6060

61-
logging.info('starting %s', bash)
61+
logging.info('starting clickhouse-client process')
62+
logging.debug('starting %s', bash)
6263
os.system(bash)
6364

6465
pass

0 commit comments

Comments
 (0)