Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #294 from Juanmcuello/fix-stdout-log

Correctly suffix stdout logfile name with 'stdout' string.
  • Loading branch information...
commit 77a68194536ecebfd96dacde08a2316f0cb79876 2 parents e80346b + d8d67a1
@dj2 dj2 authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/goliath/runner.rb
View
3  lib/goliath/runner.rb
@@ -211,7 +211,8 @@ def run
File.umask(0000)
- stdout_log_file = "#{File.dirname(@log_file)}/#{File.basename(@log_file)}_stdout.log"
+ log_extension = File.extname(@log_file)
+ stdout_log_file = "#{File.dirname(@log_file)}/#{File.basename(@log_file, log_extension)}_stdout#{log_extension}"
STDIN.reopen("/dev/null")
STDOUT.reopen(stdout_log_file, "a")
Please sign in to comment.
Something went wrong with that request. Please try again.