git://git.novaco.in
/
p2pool.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b521815
)
reopen logfile every five seconds
author
Forrest Voight
<forrest@forre.st>
Mon, 29 Aug 2011 02:22:17 +0000 (22:22 -0400)
committer
Forrest Voight
<forrest@forre.st>
Tue, 30 Aug 2011 14:11:30 +0000 (10:11 -0400)
p2pool/main.py
patch
|
blob
|
history
diff --git
a/p2pool/main.py
b/p2pool/main.py
index
64e243f
..
3aab645
100644
(file)
--- a/
p2pool/main.py
+++ b/
p2pool/main.py
@@
-766,7
+766,7
@@
def run():
self.buf = lines[-1]
def flush(self):
pass
- logfile = ReopeningFile(args.logfile, 'w')
+ logfile = ReopeningFile(args.logfile, 'a')
sys.stdout = sys.stderr = log.DefaultObserver.stderr = TimestampingPipe(TeePipe([sys.stderr, logfile]))
if hasattr(signal, "SIGUSR1"):
def sigusr1(signum, frame):