Commit 4bfd6860 authored by Olof Svensson's avatar Olof Svensson
Browse files

Moved log file from /tmp to /tmp_14_days

parent c5baf727
......@@ -67,7 +67,7 @@ class Workflow(object):
def initLogger(self, name):
user = os.environ.get("USER", "unknown")
initiator = os.environ.get("PYPUSHFLOW_INITIATOR", "pypushflow")
log_file_dir = pathlib.Path("/tmp/{0}/{1}".format(user, initiator))
log_file_dir = pathlib.Path("/tmp_14_days/{0}/{1}".format(user, initiator))
if not log_file_dir.exists():
log_file_dir.mkdir(mode=0o755, parents=True)
log_file_path = log_file_dir / "{0}.log".format(name)
Supports Markdown
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