diff options
author | Will Holland <william.holland@codethink.co.uk> | 2015-10-21 11:24:17 +0100 |
---|---|---|
committer | Will Holland <william.holland@codethink.co.uk> | 2015-10-21 11:24:17 +0100 |
commit | 9c416a7eb0e86f7797538e96d99db8b641786b38 (patch) | |
tree | bd2609291192174b04120d39cad9735602a1bc86 /firehose_call.py | |
parent | 11b3bc1850c0d59a5d5253bbf058953d18f06e34 (diff) | |
download | buildslave-scripts-9c416a7eb0e86f7797538e96d99db8b641786b38.tar.gz |
Fix log being overwritten
Diffstat (limited to 'firehose_call.py')
-rw-r--r-- | firehose_call.py | 4 |
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 |