diff --git a/ldapcherry/__init__.py b/ldapcherry/__init__.py index 72fbc2e..6c1b277 100644 --- a/ldapcherry/__init__.py +++ b/ldapcherry/__init__.py @@ -330,6 +330,7 @@ cherrypy.log.error_log.setLevel(level) if debug: + cherrypy.log.error_log.handlers = [] handler = logging.StreamHandler(sys.stderr) handler.setLevel(logging.DEBUG) cherrypy.log.error_log.addHandler(handler)