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-sacpz-resp
Commits
86e19f0e
Commit
86e19f0e
authored
Dec 09, 2020
by
Jerome Touvier
Browse files
fix logging
parent
80c4d122
Pipeline
#54937
passed with stage
in 1 minute and 27 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
start_resp.py
View file @
86e19f0e
...
...
@@ -9,7 +9,7 @@ from apps.root import output
app
=
Flask
(
__name__
)
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
)
# ************************************************************************
...
...
start_sacpz.py
View file @
86e19f0e
...
...
@@ -9,7 +9,7 @@ from apps.root import output
app
=
Flask
(
__name__
)
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
)
# ************************************************************************
...
...
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