code: def _reset_errors(self, msg=None):
          
          if msg is not None and msg in self._errors:
              del self._errors[msg]
          else:
              self._errors = {}
docs: Resets the logging throttle cache, so the next error is emitted
          regardless of the value in `self.server_error_interval`
  
          :param msg: if present, only this key is reset. Otherwise, the whole
              cache is cleaned.