fix: logger object

This commit is contained in:
adobdin 2016-06-14 05:19:44 +00:00
parent d79f3d0ab6
commit 382bc5478d

View File

@ -625,8 +625,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'])