fix bug logging exceptions with { } in the message.
project refs.