Commit df05acb2 authored by Sigmund Augdal's avatar Sigmund Augdal

Update all code to silence requests so it silences urllib3 in stead, since...

Update all code to silence requests so it silences urllib3 in stead, since this is what is used by the new etcd library
parent 94a0060c
......@@ -160,7 +160,7 @@ def parse_args():
if __name__ == '__main__':
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s %(name)s %(levelname)s %(message)s')
logging.getLogger("requests").setLevel(logging.WARNING)
logging.getLogger("urllib3").setLevel(logging.WARNING)
args = parse_args()
if args.daemonize:
daemon = Daemonize(app=APP, pid=args.pidfile, action=lambda: daemon_main(args))
......
......@@ -234,7 +234,7 @@ def parse_args():
if __name__ == '__main__':
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s %(name)s %(levelname)s %(message)s')
logging.getLogger("requests").setLevel(logging.WARNING)
logging.getLogger("urllib3").setLevel(logging.WARNING)
args = parse_args()
if args.daemonize:
daemon = Daemonize(app=APP, pid=args.pidfile, action=lambda: daemon_main(args))
......
......@@ -147,7 +147,7 @@ def parse_args():
if __name__ == '__main__':
logging.basicConfig(level=logging.INFO,
format='%(asctime)s %(name)s %(levelname)s %(message)s')
logging.getLogger("requests").setLevel(logging.WARNING)
logging.getLogger("urllib3").setLevel(logging.WARNING)
args = parse_args()
if args.daemonize:
daemon = Daemonize(app=APP, pid=args.pidfile,
......
......@@ -36,7 +36,7 @@ def set_state(new_state):
def main(logfile, interface):
logging.basicConfig(level=logging.INFO,
format='%(asctime)s %(name)s %(levelname)s %(message)s')
logging.getLogger("requests").setLevel(logging.WARNING)
logging.getLogger("urllib3").setLevel(logging.WARNING)
if logfile:
handler = logging.handlers.RotatingFileHandler(logfile,
maxBytes=10*1024**3, backupCount=5)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment