more consistent error logging format