Skip to content
Browse files

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

Correctly suffix stdout logfile name with 'stdout' string.
  • Loading branch information...
2 parents e80346b + d8d67a1 commit 77a68194536ecebfd96dacde08a2316f0cb79876 @dj2 dj2 committed
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")

0 comments on commit 77a6819

Please sign in to comment.
Something went wrong with that request. Please try again.