We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c55a71d commit 0f6ac56Copy full SHA for 0f6ac56
app/jobs/publish_feed_job.rb
@@ -50,14 +50,14 @@ def publish_rss(podcast, feed)
50
end
51
52
def fail_state(podcast, type, error)
53
- method = case type
54
- when "apple" then :error_apple!
55
- when "rss" then :error_rss!
56
- when "apple_timeout", "error" then :error!
+ (method, level) = case type
+ when "apple" then [:error_apple!, :warn]
+ when "rss" then [:error_rss!, :warn]
+ when "apple_timeout", "error" then [:error!, :error]
57
58
59
PublishingPipelineState.public_send(method, podcast)
60
- Rails.logger.error(error.message, {podcast_id: podcast.id, error_type: type})
+ Rails.logger.send(level, error.message, {podcast_id: podcast.id})
61
raise error
62
63
0 commit comments