Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpievolbio-scicomp
RepinPop
Commits
9c2cdb2f
Commit
9c2cdb2f
authored
Dec 17, 2021
by
c.fortmanngrote
Browse files
Centralize debug settings.
parent
cf089f53
Pipeline
#259012
failed with stages
in 3 minutes and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/__init__.py
View file @
9c2cdb2f
...
...
@@ -24,7 +24,10 @@ app.config['UPLOAD_DIR'] = upload_dir
formatter
=
logging
.
Formatter
(
'%(asctime)s [%(levelname)s] %(module)s: %(message)s'
)
handler
=
logging
.
FileHandler
(
filename
=
"/tmp/rarefan.log"
)
handler
.
setFormatter
(
formatter
)
handler
.
setLevel
(
logging
.
DEBUG
)
handler
.
setLevel
(
logging
.
INFO
)
if
app
.
config
[
'DEBUG'
]:
handler
.
setLevel
(
logging
.
DEBUG
)
# Configure root logger (this config will trickle down to all module loggers.)
app
.
logger
.
addHandler
(
handler
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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