https://prefect.io logo
w

Will Milner

12/14/2020, 8:24 PM
Hi, I'm seeming to have trouble to get any stdout when using a docker agent. This should show something in the logs of the flow run correct?
Copy code
task = ShellTask(return_all=True, log_stdout=True, log_stderr=True, stream_output=True)
with Flow("test") as flow:
   print_test = task(command="echo hi")
I except to see
hi
in my prefect logs but I see nothing. I have my logging level set to DEBUG
k

Kyle Moon-Wright

12/14/2020, 8:38 PM
Hey @Will Milner, Just checking - did you also set
log_to_cloud = true
in the
[logging]
section of your configuration file?
Also in general, I’d be careful about naming any instance of a task with the name
task
- can cause some unexpected behavior.
w

Will Milner

12/15/2020, 7:00 AM
I don't have the log_to_cloud specified in my configuration file at all, but I'm using
backend server
the logs are working properly if I call just flow.run(), but if I register the flow and then run through the web ui I see no logs