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):