Fix logging format

Fixes #361