Skip to content

Commit

Permalink
Disable test DAV server logging by default
Browse files Browse the repository at this point in the history
DAV server logs produce many lines of output during test runs that
obscure more relevant messages.

This change makes the server logging conditional on a datalad log level
of debug or more verbose.

Ping #503
  • Loading branch information
mih committed Oct 29, 2023
1 parent 3f4597a commit 1378b02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions datalad_next/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ def __enter__(self):
"port": 43612,
"provider_mapping": {"/": str(self.path)},
"simple_dc": {"user_mapping": {'*': auth}},
# disable DAV server logging to avoid clustering the test output
# unless logger runs at least on debug log level
"logging": {"enable": lgr.isEnabledFor(10)},
}
app = WsgiDAVApp(config)
self.server = wsgi.Server(
Expand Down

0 comments on commit 1378b02

Please sign in to comment.