Quiet urllib3 logs

As described at https://github.com/urllib3/urllib3/blob/1.26.18/docs/user-guide.rst#logging
This commit is contained in:
Andrew Kvalheim 2024-04-22 11:15:25 -07:00
parent c528efb1be
commit 1fed215977

View file

@ -1243,6 +1243,7 @@ if __name__ == "__main__":
arguments = argparser.parse_args() arguments = argparser.parse_args()
logging.getLogger("urllib3").setLevel(logging.WARNING)
logging.basicConfig( logging.basicConfig(
format=f"%(asctime)s.%(msecs)03d {time.strftime('%Z')}: %(message)s", format=f"%(asctime)s.%(msecs)03d {time.strftime('%Z')}: %(message)s",
datefmt="%Y-%m-%d %H:%M:%S", datefmt="%Y-%m-%d %H:%M:%S",