Skip to content

Commit

Permalink
Merge pull request #2 from KevinHock/master
Browse files Browse the repository at this point in the history
Fixed errors with missing d and log prefix
  • Loading branch information
joelferrier committed Sep 22, 2016
2 parents 3171c06 + af29972 commit fb160a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions margaritashotgun/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ def __init__(self, conf, workers, name, library=True):
log_dir = conf[0]['logging']['log_dir']
if log_dir[-1:] != '/':
log_dir = log_dir + '/'
except KeyError:
except TypeError:
log_dir = ""
try:
log_prefix = conf[0]['logging']['prefix'] + "-"
except KeyError:
except TypeError:
log_prefix = ""

self.log_file = "{}{}memory-capture.log".format(
Expand Down

0 comments on commit fb160a3

Please sign in to comment.