forked from p15670423/monkey
Island: Remove Environment.is_debug()
Environment.is_debug() is always False.
This commit is contained in:
parent
c4d7bf7030
commit
e98aa81645
|
@ -12,7 +12,6 @@ logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class Environment(object, metaclass=ABCMeta):
|
class Environment(object, metaclass=ABCMeta):
|
||||||
_DEBUG_SERVER = False
|
|
||||||
_AUTH_EXPIRATION_TIME = timedelta(minutes=30)
|
_AUTH_EXPIRATION_TIME = timedelta(minutes=30)
|
||||||
|
|
||||||
_testing = False
|
_testing = False
|
||||||
|
@ -32,8 +31,5 @@ class Environment(object, metaclass=ABCMeta):
|
||||||
def get_config(self) -> EnvironmentConfig:
|
def get_config(self) -> EnvironmentConfig:
|
||||||
return self._config
|
return self._config
|
||||||
|
|
||||||
def is_debug(self):
|
|
||||||
return self._DEBUG_SERVER
|
|
||||||
|
|
||||||
def get_auth_expiration_time(self):
|
def get_auth_expiration_time(self):
|
||||||
return self._AUTH_EXPIRATION_TIME
|
return self._AUTH_EXPIRATION_TIME
|
||||||
|
|
|
@ -146,13 +146,6 @@ def _start_island_server(should_setup_only, config_options: IslandConfigOptions)
|
||||||
f"{config_options.key_path}."
|
f"{config_options.key_path}."
|
||||||
)
|
)
|
||||||
|
|
||||||
if env_singleton.env.is_debug():
|
|
||||||
app.run(
|
|
||||||
host="0.0.0.0",
|
|
||||||
debug=True,
|
|
||||||
ssl_context=(config_options.crt_path, config_options.key_path),
|
|
||||||
)
|
|
||||||
else:
|
|
||||||
http_server = WSGIServer(
|
http_server = WSGIServer(
|
||||||
("0.0.0.0", ISLAND_PORT),
|
("0.0.0.0", ISLAND_PORT),
|
||||||
app,
|
app,
|
||||||
|
|
Loading…
Reference in New Issue