Remove separate camera stream thread
This commit is contained in:
parent
94bc49cd5c
commit
021745da26
5 changed files with 137 additions and 232 deletions
|
|
@ -7,8 +7,10 @@ import time
|
|||
|
||||
# Look for debug flag
|
||||
if "-d" in sys.argv or "--debug" in sys.argv:
|
||||
debug_app = True
|
||||
log_level = logging.DEBUG
|
||||
else:
|
||||
debug_app = False
|
||||
log_level = logging.INFO
|
||||
|
||||
|
||||
|
|
@ -208,4 +210,4 @@ if __name__ == "__main__":
|
|||
|
||||
logging.info("Starting OpenFlexure Microscope Server...")
|
||||
server = Server(app)
|
||||
server.run(host="0.0.0.0", port=5000, debug=False, zeroconf=True)
|
||||
server.run(host="0.0.0.0", port=5000, debug=debug_app, zeroconf=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue