Skip to content

Commit

Permalink
Added reboot to log
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerShubi committed Oct 10, 2019
1 parent 549301a commit 3e0092e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CameraNetwork/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions scripts/start_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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')

0 comments on commit 3e0092e

Please sign in to comment.