Skip to content

Commit

Permalink
Don't log the deprecation debug messages in production
Browse files Browse the repository at this point in the history
  • Loading branch information
bdunne committed Aug 9, 2018
1 parent 3231224 commit df146c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vmdb/deprecation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def self.proc_for_default_log
return unless default_log
proc do |message, callstack|
default_log.warn(message)
default_log.debug(callstack.join("\n ")) if default_log.debug?
default_log.debug { callstack.join("\n ") } unless Rails.env.production?
end
end
private_class_method :proc_for_default_log
Expand Down

0 comments on commit df146c8

Please sign in to comment.