Skip to content

Commit

Permalink
hobson now flushes it's logger before saving logfiles to ensure they …
Browse files Browse the repository at this point in the history
…contain all the log content
  • Loading branch information
Jared Grippe authored and jaredatron committed May 17, 2012
1 parent c63536e commit c8f90d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/hobson/project/test_run/job/actions.rb
Expand Up @@ -69,6 +69,7 @@ def save_log_files!
log_dir_path = workspace.root.join('log')
return unless log_dir_path.exist?
log_dir_path.children.each{|path| save_artifact path}
Hobson.logger.outputters.each{|o| o.try(:flush) } # flush all log output
save_artifact(Hobson.temp_logfile.tap(&:flush).path, :name => 'test_run.log') if Hobson.temp_logfile.present?
end

Expand Down

0 comments on commit c8f90d2

Please sign in to comment.