Fix typo'ed variable.
Change-Id: I15f9b6193d2192fc4ffc7369949a2bfc1c0b85c6
diff --git a/turbo_hipster/lib/utils.py b/turbo_hipster/lib/utils.py
index 11a3ade..e39e7fd 100644
--- a/turbo_hipster/lib/utils.py
+++ b/turbo_hipster/lib/utils.py
@@ -104,10 +104,10 @@
os.makedirs(os.path.dirname(logfile))
logger = logging.getLogger(logfile)
- log_hanlder = logging.FileHandler(logfile)
+ log_handler = logging.FileHandler(logfile)
log_formatter = logging.Formatter('%(asctime)s %(message)s')
- log_hanlder.setFormatter(log_formatter)
- logger.addHandler(log_hanlder)
+ log_handler.setFormatter(log_formatter)
+ logger.addHandler(log_handler)
descriptors = {}
@@ -181,9 +181,9 @@
pass
logger.info('[script exit code = %d]' % p.returncode)
- logger.removeHandler(log_hanlder)
- log_hanlder.flush()
- log_hanlder.close()
+ logger.removeHandler(log_handler)
+ log_handler.flush()
+ log_handler.close()
def push_file(job_log_dir, file_path, publish_config):