Skip to content
Snippets Groups Projects
Commit feb5992e authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-532: Dont have urllib3 spam the logs for every URL we fetch. Especially...

L2SS-532: Dont have urllib3 spam the logs for every URL we fetch. Especially our docker device suffers from this.
parent 0432dc9b
Branches
Tags
1 merge request!195L2SS-532: Spam logs less, reduces disk usage for log cache
......@@ -125,6 +125,9 @@ def configure_logger(logger: logging.Logger=None, log_extra=None, debug=False):
# don't spam errors for git, as we use it in our log handler, which would result in an infinite loop
logging.getLogger("git").setLevel(logging.ERROR)
# don't spam debug messages when fetching URLs
logging.getLogger("urllib3").setLevel(logging.INFO)
# for now, also log to stderr
# Set up logging in a way that it can be understood by a human reader, be
# easily grep'ed, be parsed with a couple of shell commands and
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment