🚨Fix Rubocop lint errors
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
Raven.configure do |config|
|
||||
config.dsn = ENV['SENTRY_DSN']
|
||||
config.environments = ['staging', 'production']
|
||||
config.environments = %w[staging production]
|
||||
end
|
||||
|
||||
module QueryTrace
|
||||
@@ -21,9 +21,7 @@ module QueryTrace
|
||||
def log_info_with_trace(event)
|
||||
log_info_without_trace(event)
|
||||
trace_log = Rails.backtrace_cleaner.clean(caller).first
|
||||
if trace_log && event.payload[:name] != 'SCHEMA'
|
||||
logger.debug(" \\_ \e[33mCalled from:\e[0m " + trace_log)
|
||||
end
|
||||
logger.debug(" \\_ \e[33mCalled from:\e[0m " + trace_log) if trace_log && event.payload[:name] != 'SCHEMA'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user