Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OSUG
RESIF
ws-ph5-availability
Commits
b79c4b3d
Commit
b79c4b3d
authored
Dec 09, 2020
by
Jerome Touvier
Browse files
fix logging
parent
80bfbcc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
start.py
View file @
b79c4b3d
...
@@ -11,7 +11,7 @@ from config import Config
...
@@ -11,7 +11,7 @@ from config import Config
app
=
Flask
(
__name__
)
app
=
Flask
(
__name__
)
FMT
=
"[%(asctime)s] %(levelname)s [%(filename)s:%(lineno)d] [%(funcName)s] %(message)s"
FMT
=
"[%(asctime)s] %(levelname)s [%(filename)s:%(lineno)d] [%(funcName)s] %(message)s"
LOGLEVEL
=
logging
.
INFO
if
os
.
environ
.
get
(
"RUNMODE"
)
==
"prodution"
else
logging
.
DEBUG
LOGLEVEL
=
logging
.
INFO
if
os
.
environ
.
get
(
"RUNMODE"
)
==
"produ
c
tion"
else
logging
.
DEBUG
logging
.
basicConfig
(
format
=
FMT
,
level
=
LOGLEVEL
)
logging
.
basicConfig
(
format
=
FMT
,
level
=
LOGLEVEL
)
app
.
config
.
from_object
(
Config
)
app
.
config
.
from_object
(
Config
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment