docs: def log_errors(function):
      """Logs the exceptions raised by the decorated function
      without interfering. For debugging purpose."""
  
      def wrapper(*args, **kwargs):
          try:
              return function(*args, **kwargs)
          except BaseException as e:
              handle_exception(None, e, "Exception in function %s",
                               reflect.canonical_name(function))
              raise
  
      return wrapper