fix: object logger instead of logging

This commit is contained in:
adobdin 2016-06-14 05:13:42 +00:00
parent 045b819b04
commit e3d5bef013

View File

@ -657,8 +657,8 @@ class NodeManager(object):
@run_with_lock @run_with_lock
def create_archive_general(self, timeout): def create_archive_general(self, timeout):
if not os.path.isdir(self.conf['outdir']): if not os.path.isdir(self.conf['outdir']):
logging.warning("Nothing to do, directory %s doesn't exist" % self.logger.warning("Nothing to do, directory %s doesn't exist" %
self.conf['outdir']) self.conf['outdir'])
return return
outfile = os.path.join(self.conf['archive_dir'], outfile = os.path.join(self.conf['archive_dir'],
self.conf['archive_name']) self.conf['archive_name'])