Commit f2638563 authored by Valentin Reis's avatar Valentin Reis

[Typo] operator whitespace fixes.

parent 7a2bf790
Pipeline #4366 failed with stages
in 2 minutes and 13 seconds
......@@ -23,6 +23,7 @@ logger = logging.getLogger('nrm')
logger_power = logging.getLogger('power')
class Daemon(object):
def __init__(self, config):
self.target = 100.0
self.config = config
......@@ -324,13 +325,13 @@ def runner(config):
logger_power.setLevel(logging.DEBUG)
if config.log:
print("Logging to %s" %config.log)
print("Logging to %s" % config.log)
logger.addHandler(logging.FileHandler(config.log))
if config.log_power:
print("Logging power data to %s" %config.log_power)
formatter=logging.Formatter('%(message)s')
handler=logging.FileHandler(config.log_power)
print("Logging power data to %s" % config.log_power)
formatter = logging.Formatter('%(message)s')
handler = logging.FileHandler(config.log_power)
handler.setFormatter(formatter)
logger_power.addHandler(handler)
......
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