Skip to content

Commit

Permalink
logging multipart messages only INFO and up
Browse files Browse the repository at this point in the history
  • Loading branch information
kba committed Oct 18, 2023
1 parent c7063ec commit e2b0b63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion ocrd_utils/ocrd_logging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# each logger requires a corresponding configuration section below
#
[loggers]
keys=root,ocrd,ocrd_network,ocrd_tensorflow,ocrd_shapely_geos,ocrd_PIL,uvicorn,uvicorn_access,uvicorn_error
keys=root,ocrd,ocrd_network,ocrd_tensorflow,ocrd_shapely_geos,ocrd_PIL,uvicorn,uvicorn_access,uvicorn_error,multipart

#
# mandatory handlers section
Expand Down Expand Up @@ -106,6 +106,10 @@ qualname=uvicorn.access
level=DEBUG
handlers=consoleHandler
qualname=uvicorn.error
[logger_multipart]
level=INFO
handlers=consoleHandler
qualname=multipart



Expand Down
3 changes: 2 additions & 1 deletion ocrd_utils/ocrd_utils/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
'paramiko.transport': logging.INFO,
'uvicorn.access': logging.DEBUG,
'uvicorn.error': logging.DEBUG,
'uvicorn': logging.INFO
'uvicorn': logging.INFO,
'multipart': logging.INFO,
}

_initialized_flag = False
Expand Down

0 comments on commit e2b0b63

Please sign in to comment.