Log messages with placeholders

We're using errbit error catcher, and when the application logs messages with placeholders they are displayed as "%type​: !me​ssage​ in %​funct​ion (​line ​%line​ of %​file)​.".
This minimal fix should resolve this issue.