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
memoriav
Memobase 2020
services
postprocessing
Media Metadata Indexer
Commits
13ab1519
Unverified
Commit
13ab1519
authored
Nov 27, 2020
by
Sebastian Schüpbach
Browse files
show lines in logging
parent
b8e99181
Pipeline
#17973
failed with stages
in 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
mediametadatatodb_app/main.py
View file @
13ab1519
...
...
@@ -23,7 +23,7 @@ if __name__ == "__main__":
numeric_level
=
getattr
(
logging
,
os
.
getenv
(
'LOG_LEVEL'
).
upper
(),
None
)
if
not
isinstance
(
numeric_level
,
int
):
raise
ValueError
(
f
'Invalid log level:
{
os
.
getenv
(
"LOG_LEVEL"
)
}
'
)
logging
.
basicConfig
(
level
=
numeric_level
)
logging
.
basicConfig
(
format
=
'%(levelname)-8s [%(filename)s:%(lineno)d] %(message)s'
,
level
=
numeric_level
)
logging
.
info
(
"Starting up"
)
runner
=
MediametadataToDB
()
runner
.
run
()
...
...
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