Skip to content

Commit

Permalink
Formatting for worker log, remove time unit
Browse files Browse the repository at this point in the history
  • Loading branch information
akira committed Feb 24, 2019
1 parent fab9003 commit d3a7cf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/exq/middleware/logger.ex
Expand Up @@ -11,13 +11,13 @@ defmodule Exq.Middleware.Logger do
end

def after_processed_work(pipeline) do
Logger.info("#{log_context(pipeline)} done: #{formatted_diff(delta(pipeline))} sec")
Logger.info("#{log_context(pipeline)} done: #{formatted_diff(delta(pipeline))}")
pipeline
end

def after_failed_work(pipeline) do
Logger.info(to_string(pipeline.assigns.error_message))
Logger.info("#{log_context(pipeline)} fail: #{formatted_diff(delta(pipeline))} sec")
Logger.info("#{log_context(pipeline)} fail: #{formatted_diff(delta(pipeline))}")
pipeline
end

Expand Down

0 comments on commit d3a7cf1

Please sign in to comment.