Skip to content

Commit

Permalink
seperate error logs with new lines
Browse files Browse the repository at this point in the history
  • Loading branch information
cantino committed Oct 13, 2014
1 parent 5d3872f commit daf8cc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/agent.rb
Expand Up @@ -384,7 +384,7 @@ def async_receive(agent_id, event_ids)
agent.last_receive_at = Time.now
agent.save!
rescue => e
agent.error "Exception during receive: #{e.message} -- #{e.backtrace}"
agent.error "Exception during receive. #{e.message}: #{e.backtrace.join("\n")}"
raise
end
end
Expand Down Expand Up @@ -422,7 +422,7 @@ def async_check(agent_id)
agent.last_check_at = Time.now
agent.save!
rescue => e
agent.error "Exception during check: #{e.message} -- #{e.backtrace}"
agent.error "Exception during check. #{e.message}: #{e.backtrace.join("\n")}"
raise
end
end
Expand Down

0 comments on commit daf8cc9

Please sign in to comment.