Adjust Sentry missing price and rate to warning level
This commit is contained in:
@@ -121,7 +121,7 @@ class ExchangeRate::Syncer
|
||||
else
|
||||
message = "#{exchange_rate_provider.class.name} could not fetch exchange rate pair from: #{from} to: #{to} between: #{effective_start_date} and: #{Date.current}. Provider error: #{provider_response.error.message}"
|
||||
Rails.logger.warn(message)
|
||||
Sentry.capture_exception(MissingExchangeRateError.new(message))
|
||||
Sentry.capture_exception(MissingExchangeRateError.new(message), level: :warning)
|
||||
{}
|
||||
end
|
||||
end
|
||||
|
||||
@@ -77,7 +77,7 @@ class Security::Price::Syncer
|
||||
else
|
||||
msg = "#{security_provider.class.name} could not fetch prices for #{security.ticker} between #{provider_fetch_start_date} and #{end_date}. Provider error: #{response.error.message}"
|
||||
Rails.logger.warn(msg)
|
||||
Sentry.capture_exception(MissingSecurityPriceError.new(msg))
|
||||
Sentry.capture_exception(MissingSecurityPriceError.new(msg), level: :warning)
|
||||
{}
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user