Skip to content

Commit 9ce178b

Browse files
committed
Better logging when using flows in a pipeline
1 parent f2c30b0 commit 9ce178b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

datapackage_pipelines/manager/tasks.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ async def enqueue_errors(step, process, queue, debug):
3636
errors.append(line)
3737
if len(errors) > 1000:
3838
errors.pop(1)
39-
line = "{}: {}".format(step['run'], line)
39+
if '__flow' in step:
40+
line = "(F) {}: {}".format(step['__flow'], line)
41+
else:
42+
line = "{}: {}".format(step['run'], line)
4043
if debug:
4144
logging.info(line)
4245
await queue.put(line)

0 commit comments

Comments
 (0)