From 2a89531f81c9910cd23aed9042adbf94e3ddd803 Mon Sep 17 00:00:00 2001 From: Adam Groszer Date: Tue, 31 May 2016 14:53:56 +0200 Subject: [PATCH] better logging --- src/zope/wineggbuilder/lxml.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zope/wineggbuilder/lxml.py b/src/zope/wineggbuilder/lxml.py index d926939..93b89bc 100644 --- a/src/zope/wineggbuilder/lxml.py +++ b/src/zope/wineggbuilder/lxml.py @@ -84,13 +84,14 @@ def extract(fname, target, targetname): def do(command, cwd=None): tmpfile = None + LOGGER.debug('%s in %s', command, cwd) if len(command.splitlines()) > 1: #in case there are more lines we got to do .bat file tmpfile = tempfile.mktemp(suffix='.bat') open(tmpfile, "w").write(command) command = tmpfile + LOGGER.debug('running as %s', command) - LOGGER.debug('%s in %s', command, cwd) try: output = base.Command(cwd=cwd).do(command) finally: