Skip to content

Commit

Permalink
Merge pull request #20 from ianhall/fix-rails-logger
Browse files Browse the repository at this point in the history
further qualify existence of Rails.logger before using it
  • Loading branch information
arnab-p authored Jun 12, 2024
2 parents 851c25d + e6a60df commit fc98c9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rudder/analytics/logging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class << self
def logger
return @logger if @logger

base_logger = if defined?(Rails)
base_logger = if defined?(Rails) && Rails.logger
Rails.logger
else
logger = Logger.new STDOUT
Expand Down
2 changes: 1 addition & 1 deletion lib/rudder/analytics/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Rudder
class Analytics
VERSION = '3.0.0'
VERSION = '3.0.1'
end
end

0 comments on commit fc98c9c

Please sign in to comment.