Mercurial > ~darius > hgwebdir.cgi > vanlogger
comparison vanlogger.py @ 1:f77cc29d0b47
Remove debugging
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Sun, 19 Nov 2017 18:14:49 +1030 |
parents | 78148730d98d |
children | 65be58857ed4 59cf68be7feb bacb798e6731 |
comparison
equal
deleted
inserted
replaced
0:78148730d98d | 1:f77cc29d0b47 |
---|---|
181 then = None | 181 then = None |
182 while True: | 182 while True: |
183 dolog = False | 183 dolog = False |
184 if then == None or datetime.datetime.now() - then > datetime.timedelta(seconds = 60): | 184 if then == None or datetime.datetime.now() - then > datetime.timedelta(seconds = 60): |
185 dolog = True | 185 dolog = True |
186 print('Logging') | |
187 then = datetime.datetime.now() | 186 then = datetime.datetime.now() |
188 p.process(s.read(1024)) | 187 p.process(s.read(1024)) |
189 if dolog: | 188 if dolog: |
190 log_epro(p, cur) | 189 log_epro(p, cur) |
191 dbh.commit() | 190 dbh.commit() |