Browse files

Correctly suffix stdout logfile name with 'stdout' string.

  • Loading branch information...
1 parent e80346b commit d8d67a1f249afd57a83225ceaf41b9bfb4d57a60 @Juanmcuello Juanmcuello committed Jul 18, 2014
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 d8d67a1

Please sign in to comment.