diff options
author | 2016-11-09 22:39:01 -0500 | |
---|---|---|
committer | 2016-11-09 22:39:01 -0500 | |
commit | 404fcf8f737f405da7fd2e61441dd20a57d63935 (patch) | |
tree | be6f2214774edb1c803303eede8e810028a7584d /deploy/adapters/ansible/openstack_mitaka/roles/onos_cluster/files/setup_networks/log.py | |
parent | 5f7e61eb5419681359af3ff3e37fac2b771a5c08 (diff) |
autopep8 make py files more standard
Change-Id: Ibaa74a1f508b28548668e764d1860393caa356d4
Signed-off-by: KingPoo <haojingbo@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/openstack_mitaka/roles/onos_cluster/files/setup_networks/log.py')
-rw-r--r-- | deploy/adapters/ansible/openstack_mitaka/roles/onos_cluster/files/setup_networks/log.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/deploy/adapters/ansible/openstack_mitaka/roles/onos_cluster/files/setup_networks/log.py b/deploy/adapters/ansible/openstack_mitaka/roles/onos_cluster/files/setup_networks/log.py index fffeb589..a22ff0fe 100644 --- a/deploy/adapters/ansible/openstack_mitaka/roles/onos_cluster/files/setup_networks/log.py +++ b/deploy/adapters/ansible/openstack_mitaka/roles/onos_cluster/files/setup_networks/log.py @@ -1,12 +1,13 @@ import logging import os loggers = {} -log_dir="/var/log/setup_network" +log_dir = "/var/log/setup_network" try: os.makedirs(log_dir) except: pass + def getLogger(name): if name in loggers: return loggers[name] @@ -29,7 +30,8 @@ def getLogger(name): ch.setLevel(logging.ERROR) # create formatter and add it to the handlers - formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s") + formatter = logging.Formatter( + "%(asctime)s - %(name)s - %(levelname)s - %(message)s") ch.setFormatter(formatter) fh.setFormatter(formatter) |