Skip to content

Commit

Permalink
mets_server: different loggers for socket/host-port
Browse files Browse the repository at this point in the history
  • Loading branch information
kba committed Dec 14, 2022
1 parent 3685aeb commit 69dad92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocrd/ocrd/mets_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class ClientSideOcrdMets():
"""

def __init__(self, host, port, socket):
self.log = getLogger('ocrd.workspace_client')
self.log = getLogger('ocrd.mets_client.%s' % ('uds' if socket else 'tcp'))
if socket:
self.url = f'http+unix://{socket.replace("/", "%2F")}'
self.session = requests_unixsocket_session()
Expand Down

0 comments on commit 69dad92

Please sign in to comment.