print logs in error messages