Command line job - Print log

Hello,

I setuped a command line jobs which launch mayapy and a python script to act on a maya scene.

In the pyhton script, I do some print(). I want to see those print in Deadline task report log.

For now, print are only displayed once the whole mayapy and script is done. If a problem arise during script execution, I don’t see any print and the task just continue indefinitly.

How can I print stuff without waiting for the whole process to be done and successfull? Someone pointed me to the Rest API, but I can’t find any information about logging in the doc

Thanks