The logger was recently rewritten and I want to make sure all the references
using the old logger are updated. I think there are some lingering things
that weren't totally changed and I think are causing me some issues.
Basically during the logger rewrite, getLogger() was refactored into
get_logger('nameoflogger') which means any lingering references to
getLogger() should also be updated. right?
When I grep for "getLogger" on all of opus I get:
[bmbouter@opus opus]$ grep -r "getLogger" ./
./lib/ssh_tools.py:log = opus.lib.log.getLogger()
./lib/osutils/windows.py:log = log.getLogger()
./lib/osutils/linux.py:log = log.getLogger()
./lib/osutils/__init__.py:log = log.getLogger()
./lib/log.py:Each application should get its own logger with the getLogger()
function. Here
./lib/log.py:>>> log = opus.lib.log.getLogger()
./lib/log.py: opusroot = logging.getLogger("opus")
./lib/log.py: applogger = logging.getLogger("opus."+name)
./lib/prov/deltacloud_old/log.py:log = logging.getLogger("deltacloud")
The entried in log.py are all documentation really, but what about the
others? Should I got through and update those?
Brian
--
Brian Bouterse
ITng Services