Commit c64d4e6b authored by Branson Stephens's avatar Branson Stephens
Browse files

Fixed problem with lvalert_listen and lvalert_admin complaining about not...

Fixed problem with lvalert_listen and lvalert_admin complaining about not having a handler for the pyxmpp.resolver module. Now we use logging.basicConfig with level set to ERROR (unless verbose).
parent 5254cd06
......@@ -225,6 +225,8 @@ if opts.debug:
logger=logging.getLogger()
logger.addHandler(logging.StreamHandler())
logger.setLevel(logging.DEBUG)
else:
logging.basicConfig(level=logging.ERROR)
# debug the memore
libxml2.debugMemory(1)
......
......@@ -276,6 +276,8 @@ if opts.debug:
logger=logging.getLogger()
logger.addHandler(logging.StreamHandler())
logger.setLevel(logging.DEBUG)
else:
logging.basicConfig(level=logging.ERROR)
# debug the memory
libxml2.debugMemory(1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment