Multi-line log output in Python processor

I am new to working with the Python processor in ONE DATA. For debugging purposes, I added a few print() statements. However, this

print("asdf")
print("foo")
print("bar")

result in the log output asdffoobar in the processor log output. Even

print("asdf\n")
print("foo\n")
print("bar\n")

results in asdffoobar.

Is there a way to not have all log/print output in a single line?

Hi Marco,

I had a quick look at the code and ONE DATA Server reads the output from a file (written by PyData). This output is read line-by-line and appended to a StringBuilder… I believe we forgot to append a newline between each line. I would recommend creating a bug ticket for this.

Best regards,
Jean Pierre

1 Like