Skip to content

Commit

Permalink
Merge pull request #91 from Crowdtilt/log
Browse files Browse the repository at this point in the history
Improving logging settings for heroku
  • Loading branch information
msaint committed Sep 3, 2013
2 parents d94af6c + 12bb1f2 commit ba7c2ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions config/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@

# Initialize the rails application
Selfstarter::Application.initialize!

Rails.logger = Logger.new(STDOUT)
4 changes: 4 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,8 @@
config.assets.prefix = "/#{ENV['APP_NAME']}/assets"
end

# Logging settings for heroku
config.logger = Logger.new(STDOUT)
config.logger.level = Logger.const_get((ENV["LOG_LEVEL"] || "INFO").upcase)

end

0 comments on commit ba7c2ed

Please sign in to comment.