add error info into every error log