Fixes error logging parameters.