From 08eedf6f2decb74d492692d81880cf553f4efbf7 Mon Sep 17 00:00:00 2001 From: Hidden Z Date: Sat, 30 Oct 2010 18:03:04 +0000 Subject: [PATCH] py-i2phosts-fetcher: log injector's output --- py-i2phosts-fetcher | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/py-i2phosts-fetcher b/py-i2phosts-fetcher index 0672283..071af1d 100755 --- a/py-i2phosts-fetcher +++ b/py-i2phosts-fetcher @@ -109,5 +109,6 @@ for source in config['sources']: sp_args = [path + '/py-i2phosts-injector', '-s', '-a', '-f', filename, '-d', 'Auto-added from ' + source_hostname] p = subprocess.Popen(sp_args, shell=False, stdin=None, - stdout=None, stderr=subprocess.STDOUT) - p.wait() + stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + out = p.communicate()[0] + log.info('injector output: \n%s', out)