code: def reload(self, config=None, debug=False):
          
          try:
              # log configuration handling
              # get log level
              # (if not in configuration file, log level is set to debug)
              level = get_loglevel(
                  self._get_param(
                      'global',
                      'log.level',
                      config,
                      'debug',
                      )
                  )
              # configure access log
              self._set_access_log(config, level)
              # configure error log
              self._set_error_log(config, level, debug)
  
              # load template files
              self._load_templates(config)
  
              # loading the auth configuration
              self._init_auth(config)
  
              # Loading the attributes
              self.attributes_file = \
                  self._get_param('attributes', 'attributes.file', config)
              cherrypy.log.error(
                  msg="loading attributes file '%(file)s'" %
                      {'file': self.attributes_file},
                  severity=logging.DEBUG
              )
  
              self.notifications = {}
  
              self.attributes = Attributes(self.attributes_file)
  
              cherrypy.log.error(
                  msg="init directories backends",
                  severity=logging.DEBUG
              )
              self._init_backends(config)
              self._check_backends()
  
              # loading the ppolicy
              self._init_ppolicy(config)
  
              # loading custom javascript
              self._init_custom_js(config)
  
              cherrypy.log.error(
                  msg="application started",
                  severity=logging.INFO
              )
  
          except Exception as e:
              self._handle_exception(e)
              cherrypy.log.error(
                  msg="application failed to start",
                  severity=logging.ERROR
              )
              exit(1)
docs: load/reload configuration
          @dict: configuration of ldapcherry