mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
7f457019fb
commit
820b2e0ca1
@ -347,7 +347,7 @@ class RotatingStream(object):
|
||||
raise
|
||||
|
||||
def rollover(self):
|
||||
if self.max_size is None or self.current_pos <= self.max_size:
|
||||
if self.max_size is None or self.current_pos <= self.max_size or self.filename in ('/dev/stdout', '/dev/stderr'):
|
||||
return
|
||||
self.stream.close()
|
||||
for i in xrange(self.history - 1, 0, -1):
|
||||
|
Loading…
x
Reference in New Issue
Block a user