Avoid doing extra formatting like this. Just pick an appropriate level + message and let the logging handlers do the rest.