Add nullhandler in logging for python2.6 compatibility