From 3e0092e17fd18ce6502e3208ceed0618ee8dfba8 Mon Sep 17 00:00:00 2001 From: Shubi Date: Thu, 10 Oct 2019 10:44:03 +0300 Subject: [PATCH] Added reboot to log --- CameraNetwork/controller.py | 2 +- scripts/start_server.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CameraNetwork/controller.py b/CameraNetwork/controller.py index dd9e443..a1b1603 100644 --- a/CameraNetwork/controller.py +++ b/CameraNetwork/controller.py @@ -532,7 +532,7 @@ def safe_capture(self, settings, frames_num=1, self.start_camera() except Exception as e: logging.exception( - 'The camera failed restarting. Reboot.' + 'The camera failed restarting. Rebooting.' ) logging.shutdown() time.sleep(120) diff --git a/scripts/start_server.py b/scripts/start_server.py index 7646630..fd67e12 100755 --- a/scripts/start_server.py +++ b/scripts/start_server.py @@ -146,7 +146,7 @@ def main(): # I delay the reboot so that the tunnel will stay open and # enable debugging. # - logging.exception('Unkown error:\n{}'.format(repr(e))) + logging.exception('Rebooting. Unkown error:\n{}'.format(repr(e))) logging.shutdown() time.sleep(120) os.system('sudo reboot') @@ -186,7 +186,7 @@ def main(): # I delay the reboot so that the tunnel will stay open and # enable debugging. # - logging.exception('Unkown error:\n{}'.format(repr(e))) + logging.exception('Rebooting. Unkown error:\n{}'.format(repr(e))) logging.shutdown() time.sleep(120) os.system('sudo reboot')