Added Website log (start and stop)
This commit is contained in:
parent
6a348c3108
commit
6d0b42b5a5
1 changed files with 3 additions and 0 deletions
3
main.py
3
main.py
|
@ -35,7 +35,9 @@ finished = None
|
|||
message = None
|
||||
|
||||
def exit_handler():
|
||||
conn.commit()
|
||||
conn.close()
|
||||
website_log.info("Website exited")
|
||||
sys.exit("Program sucsesfully exited")
|
||||
|
||||
#website
|
||||
|
@ -314,4 +316,5 @@ def documentation():
|
|||
|
||||
def main():
|
||||
atexit.register(exit_handler)
|
||||
website_log.info("Website is starting")
|
||||
socketio.run(app, host='0.0.0.0', port=5000)
|
Loading…
Reference in a new issue