Skip to content

Commit

Permalink
Log to stderr on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
halorgium committed Aug 8, 2013
1 parent 54128a6 commit 935fa0f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions spec/spec_helper.rb
Expand Up @@ -6,8 +6,12 @@
require 'celluloid'
require 'celluloid/rspec'

logfile = File.open(File.expand_path("../../log/test.log", __FILE__), 'a')
logfile.sync = true
if ENV["CI"]
logfile = $stderr
else
logfile = File.open(File.expand_path("../../log/test.log", __FILE__), 'a')
logfile.sync = true
end

logger = Celluloid.logger = Logger.new(logfile)

Expand Down

0 comments on commit 935fa0f

Please sign in to comment.