print error log