Skip to content

Commit 51de0ca

Browse files
committedNov 21, 2014
[processing] better output logging for gdal/org calls
Fixes #11501
1 parent f3fdd9c commit 51de0ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎python/plugins/processing/algs/gdal/GdalUtils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,17 @@ def runGdal(commands, progress):
6969
loglines = []
7070
loglines.append('GDAL execution console output')
7171
fused_command = ''.join(['%s ' % c for c in commands])
72+
print fused_command
7273
proc = subprocess.Popen(
7374
fused_command,
7475
shell=True,
7576
stdout=subprocess.PIPE,
7677
stdin=open(os.devnull),
7778
stderr=subprocess.STDOUT,
78-
universal_newlines=False,
79+
universal_newlines=True,
7980
).stdout
8081
for line in iter(proc.readline, ''):
82+
print line
8183
loglines.append(line)
8284
ProcessingLog.addToLog(ProcessingLog.LOG_INFO, loglines)
8385
GdalUtils.consoleOutput = loglines

0 commit comments

Comments
 (0)
Please sign in to comment.