Skip to content

Commit d605fdb

Browse files
committed
Suppress urllib3 log message
1 parent 7f858c6 commit d605fdb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

minion/cli/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ def main(ctx, debug, config_dir):
3939
format = "[%(levelname)s] [%(name)s] %(message)s",
4040
level = logging.DEBUG if debug else logging.INFO
4141
)
42+
# Keep the urllib3 logger at warning only
43+
logging.getLogger("urllib3.connectionpool").setLevel(logging.WARNING)
4244
ctx.obj = context.Context(config_dir or click.get_app_dir("minion"))
4345

4446

0 commit comments

Comments
 (0)