mirror of https://github.com/tLDP/python-tldp
tweak logging outputs, lower some to debug()
This commit is contained in:
parent
68b16b42d8
commit
a06e1955b7
|
@ -197,7 +197,7 @@ def post_publish_cleanup(docs):
|
||||||
for d in dtworkingdirs:
|
for d in dtworkingdirs:
|
||||||
if os.path.isdir(d):
|
if os.path.isdir(d):
|
||||||
try:
|
try:
|
||||||
logger.info("removing doctype build dir %s", d)
|
logger.debug("removing doctype build dir %s", d)
|
||||||
os.rmdir(d)
|
os.rmdir(d)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
if e.errno != errno.ENOTEMPTY:
|
if e.errno != errno.ENOTEMPTY:
|
||||||
|
@ -285,14 +285,14 @@ def publish(config, docs, **kwargs):
|
||||||
result = build(config, docs, **kwargs)
|
result = build(config, docs, **kwargs)
|
||||||
if result == os.EX_OK:
|
if result == os.EX_OK:
|
||||||
for x, source in enumerate(docs, 1):
|
for x, source in enumerate(docs, 1):
|
||||||
logger.info("%s (%d of %d) publishing outputs",
|
logger.info("Publishing (%d of %d) to %s.",
|
||||||
source.stem, x, len(docs))
|
x, len(docs), source.output.dirname)
|
||||||
# -- swapdirs must raise an error if there are problems
|
# -- swapdirs must raise an error if there are problems
|
||||||
#
|
#
|
||||||
swapdirs(source.working.dirname, source.output.dirname)
|
swapdirs(source.working.dirname, source.output.dirname)
|
||||||
if os.path.isdir(source.working.dirname):
|
if os.path.isdir(source.working.dirname):
|
||||||
logger.info("%s removing old directory %s",
|
logger.debug("%s removing old directory %s",
|
||||||
source.stem, source.working.dirname)
|
source.stem, source.working.dirname)
|
||||||
shutil.rmtree(source.working.dirname)
|
shutil.rmtree(source.working.dirname)
|
||||||
post_publish_cleanup(docs)
|
post_publish_cleanup(docs)
|
||||||
return os.EX_OK
|
return os.EX_OK
|
||||||
|
|
Loading…
Reference in New Issue