Skip to content

Commit

Permalink
Fix bug with Commanded.Middleware.Logger.delta/1.
Browse files Browse the repository at this point in the history
Fixes #294
  • Loading branch information
datafoo committed Jul 16, 2019
1 parent 5159fd2 commit 6639e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commanded/middleware/logger.ex
Expand Up @@ -47,7 +47,7 @@ defmodule Commanded.Middleware.Logger do
def after_failure(%Pipeline{} = pipeline), do: pipeline

defp delta(%Pipeline{assigns: %{started_at: started_at}}) do
DateTime.diff(started_at, DateTime.utc_now(), :microsecond)
DateTime.diff(DateTime.utc_now(), started_at, :microsecond)
end

defp log_context(%Pipeline{command: command}) do
Expand Down

0 comments on commit 6639e20

Please sign in to comment.