Fix error log to use the formatting