Moved logs into openflexure logs folder
This commit is contained in:
parent
6df7fe9405
commit
b39a0653f2
2 changed files with 6 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ from openflexure_microscope.paths import (
|
|||
OPENFLEXURE_VAR_PATH,
|
||||
OPENFLEXURE_EXTENSIONS_PATH,
|
||||
settings_file_path,
|
||||
logs_file_path
|
||||
)
|
||||
|
||||
from labthings.server.quick import create_app
|
||||
|
|
@ -31,7 +32,7 @@ from openflexure_microscope.api.v2 import views
|
|||
# Handle logging
|
||||
is_gunicorn = "gunicorn" in os.environ.get("SERVER_SOFTWARE", "")
|
||||
|
||||
DEFAULT_LOGFILE = settings_file_path("openflexure_microscope.log")
|
||||
DEFAULT_LOGFILE = logs_file_path("openflexure_microscope.log")
|
||||
|
||||
logger = logging.getLogger()
|
||||
if (__name__ == "__main__") or (not is_gunicorn):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue