summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Holland <william.holland@codethink.co.uk>2015-10-21 11:24:17 +0100
committerWill Holland <william.holland@codethink.co.uk>2015-10-21 11:24:17 +0100
commit9c416a7eb0e86f7797538e96d99db8b641786b38 (patch)
treebd2609291192174b04120d39cad9735602a1bc86
parent11b3bc1850c0d59a5d5253bbf058953d18f06e34 (diff)
downloadbuildslave-scripts-9c416a7eb0e86f7797538e96d99db8b641786b38.tar.gz
Fix log being overwritten
-rw-r--r--firehose_call.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/firehose_call.py b/firehose_call.py
index 2704ed5..5dc4de4 100644
--- a/firehose_call.py
+++ b/firehose_call.py
@@ -15,13 +15,13 @@ def log(msg):
dt = str(datetime.datetime.now()).split('.')[0]
log_file.write("[%s] Firehose Trigger: %s\n" % (dt, msg))
-def firehose_cmd(config,loglevel='debug',log='/dev/stdout'):
+def firehose_cmd(config,loglevel='debug',_log='/dev/stdout'):
''' take list of firehose configs filename and return a firehose command with that
config '''
cmd = [
"./firehose.sh",
"--log-level=%s" % loglevel,
- "--log=%s" % log,
+ "--log=%s" % _log,
] + config
log(cmd)
return cmd