Skip to content

Commit

Permalink
Made default logging level INFO
Browse files Browse the repository at this point in the history
  • Loading branch information
treeder committed Feb 19, 2013
1 parent 13af4ba commit 95e2a63
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/right_http_connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,11 @@ def initialize(params={})
@http = nil
@server = nil
@logger = get_param(:logger) ||
(RAILS_DEFAULT_LOGGER if defined?(RAILS_DEFAULT_LOGGER)) ||
Logger.new(STDOUT)
(RAILS_DEFAULT_LOGGER if defined?(RAILS_DEFAULT_LOGGER))
unless @logger
@logger = Logger.new(STDOUT)
@logger.level = Logger::INFO
end
end

def get_param(name)
Expand Down

0 comments on commit 95e2a63

Please sign in to comment.