Add `id:` when logging state transitions
Opened this issue · 0 comments
rranelli commented
When logging state transitions we should tell the number we are logging is an object id:
We should change:
msg = "Finished #{id(object)}transition to #{object.status} " \
"with #{method}#{format_args(args)}" #=> Finished [42] transition to final_state with event
To something like:
msg = "Finished #{id: id(object)}transition to #{object.status} " \
"with #{method}#{format_args(args)}" #=> Finished [id:42] transition to final_state with event