def fail_entry_with_error(entry, error):
 log.error(error)
 entry.fail(error)

def fail_entry_with_error ( entry , error ) : log . error ( error ) entry . fail ( error )
log error message at error level and fail the entry .