mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 22:53:38 +02:00
...
This commit is contained in:
parent
7f457019fb
commit
820b2e0ca1
1 changed files with 1 additions and 1 deletions
|
|
@ -347,7 +347,7 @@ def rename(self, src, dest):
|
|||
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…
Reference in a new issue