Hello,

using the python logging module, I see messages appearing in the logs
that I didn't have on the console.


['Traceback (most recent call last):\n', '  File
"/usr/lib/python2.4/site-packages/func/module_loader.py", line 97, in
load_modules\n    blip =  __import__("%s%s" % ( mod_dir,mod_imp_name),
globals(), locals(), [mod_imp_name])\n', 'ValueError: Empty module
name\n']


This is harmless and I think I could get rid of it with an exception
on ValueError, but I'm curious about what it is.

Do you also see this, or is it caused by one of my custom func modules ?

How to reproduce:

#!/usr/bin/env python
import logging, logging.handlers
import func.overlord.client as fc

log = logging.getLogger()
loghandler = logging.handlers.SysLogHandler('/dev/log',
                     logging.handlers.SysLogHandler.LOG_LOCAL0)
format='%(levelname)s %(message)s'
loghandler.setFormatter(logging.Formatter(format))
log.addHandler(loghandler)

client = fc.Client("*")
print client.list_minions()

(and check the system log)

Let me know.

Louis

_______________________________________________
Func-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/func-list

Reply via email to