1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00

Adjust Sentry missing price and rate to warning level

This commit is contained in:
Zach Gollwitzer 2025-05-16 14:25:35 -04:00
parent 6dc1d22672
commit 35d1447494
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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