Show domain of agent when it crashes

parent 855ea542
......@@ -216,9 +216,9 @@ class PubRelay::SubscriptionManager
if exception
Earl::Logger.error(agent, exception) if exception
log.error { "#{agent.class.name} crashed (#{exception.class.name})" }
log.error { "worker for #{agent.domain} crashed (#{exception.class.name})" }
else
log.error { "#{agent.class.name} exited early" } if self.running?
log.error { "worker for #{agent.domain} exited early" } if self.running?
end
agent.recycle if self.running?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment