From df177fe455fa53828b469fecfc2dafe257fcda48 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 16 Dec 2017 08:29:26 +0530 Subject: [PATCH] ... --- src/calibre/srv/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/srv/utils.py b/src/calibre/srv/utils.py index 9af4b17e58..adfa147131 100644 --- a/src/calibre/srv/utils.py +++ b/src/calibre/srv/utils.py @@ -391,6 +391,8 @@ class RotatingStream(object): os.remove(f) except EnvironmentError as e: failed[f] = e + self.set_output() + return failed class RotatingLog(ServerLog):