Related to this CadHub issue.
Calls to print() (stdout) within a script will not show up in the CadHub console, but calls to println(..., file=sys.stderr) (stderr) do. My guess is that this is related to how CQGI is executed from within cq-cli, but it needs to be investigated.