mirror of https://github.com/tLDP/python-tldp
a wee bit more logging and better emphasis on the word SUCCESS
This commit is contained in:
parent
7db6bb842e
commit
4c7e92ca17
|
@ -129,7 +129,7 @@ class OutputDirectory(OutputNamingConvention):
|
||||||
if not os.path.isdir(d):
|
if not os.path.isdir(d):
|
||||||
logger.debug("%s creating dir %s.", self.stem, d)
|
logger.debug("%s creating dir %s.", self.stem, d)
|
||||||
os.mkdir(d)
|
os.mkdir(d)
|
||||||
#self.copy_ancillaries(self.dirname)
|
logger.info("%s ready to build %s.", self.stem, self.dirname)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def hook_build_failure(self):
|
def hook_build_failure(self):
|
||||||
|
@ -137,7 +137,7 @@ class OutputDirectory(OutputNamingConvention):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def hook_build_success(self):
|
def hook_build_success(self):
|
||||||
logger.info("%s build success %s.", self.stem, self.dirname)
|
logger.info("%s build SUCCESS %s.", self.stem, self.dirname)
|
||||||
logger.debug("%s removing logs %s)", self.stem, self.logdir)
|
logger.debug("%s removing logs %s)", self.stem, self.logdir)
|
||||||
if os.path.isdir(self.logdir):
|
if os.path.isdir(self.logdir):
|
||||||
shutil.rmtree(logdir)
|
shutil.rmtree(logdir)
|
||||||
|
|
Loading…
Reference in New Issue