prevent multiple log entries for same error