Commit 471ce814 authored by Sigmund Augdal's avatar Sigmund Augdal

Improve log formatting

parent 1df616cc
......@@ -14,7 +14,8 @@ def main():
username = 'bs-unsi\spfsvc'
password = 'Laste8il'
logging.basicConfig(level=logging.INFO)
logging.basicConfig(level=logging.INFO,
format='%(asctime)s %(name)s %(levelname)s %(message)s')
etcd_client = etcd.Etcd("158.38.213.2", ssl_key=key, ssl_cert=cert, verify=cacert)
vmm_client = odata.VMMClient(vmm_baseurl, username, password)
......
......@@ -132,7 +132,8 @@ def parse_args():
return parser.parse_args()
if __name__ == '__main__':
logging.basicConfig(level=logging.DEBUG)
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s %(name)s %(levelname)s %(message)s')
logging.getLogger("requests").setLevel(logging.WARNING)
args = parse_args()
if args.daemonize:
......
......@@ -139,7 +139,8 @@ def parse_args():
return parser.parse_args()
if __name__ == '__main__':
logging.basicConfig(level=logging.DEBUG)
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s %(name)s %(levelname)s %(message)s')
logging.getLogger("requests").setLevel(logging.WARNING)
args = parse_args()
if args.daemonize:
......
......@@ -131,7 +131,8 @@ def parse_args():
return parser.parse_args()
if __name__ == '__main__':
logging.basicConfig(level=logging.DEBUG)
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s %(name)s %(levelname)s %(message)s')
logging.getLogger("requests").setLevel(logging.WARNING)
args = parse_args()
if args.daemonize:
......
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