mirror of https://github.com/MISP/misp-dashboard
chg: [dev] Added debug mode to config, False by default.
parent
eda2581441
commit
491e2aac61
|
@ -1,6 +1,7 @@
|
||||||
[Server]
|
[Server]
|
||||||
host = localhost
|
host = localhost
|
||||||
port = 8001
|
port = 8001
|
||||||
|
debug = False
|
||||||
|
|
||||||
[Dashboard]
|
[Dashboard]
|
||||||
#hours
|
#hours
|
||||||
|
|
|
@ -27,6 +27,7 @@ logger.setLevel(logging.ERROR)
|
||||||
|
|
||||||
server_host = cfg.get("Server", "host")
|
server_host = cfg.get("Server", "host")
|
||||||
server_port = cfg.getint("Server", "port")
|
server_port = cfg.getint("Server", "port")
|
||||||
|
server_debug = cfg.get("Server", "debug")
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
@ -598,6 +599,7 @@ if __name__ == '__main__':
|
||||||
try:
|
try:
|
||||||
app.run(host=server_host,
|
app.run(host=server_host,
|
||||||
port=server_port,
|
port=server_port,
|
||||||
|
debug=server_debug,
|
||||||
threaded=True)
|
threaded=True)
|
||||||
except OSError as error:
|
except OSError as error:
|
||||||
if error.errno == 98:
|
if error.errno == 98:
|
||||||
|
|
Loading…
Reference in New Issue