I’ve been chasing this bug for quite a while now and finally found the culprit.
It seems that, when using local mode, any multi-line prints to the console will not be sent back using either
balena push or
I put together the simplest demo I could think of in this repository: GitHub - edorgeville/balena-console-logs: balena push / logs (local mode): multi-line prints are not shown
To reproduce, set a device to local mode and
balena push to it. Changing the value of the
linesPerLoop variable on line #2 to
2 or more will stop any logs from getting reported back. For comparison, run
node index.js or
nodemon to run the app locally.
Here is a recording of the results (click on the image to go to the source, the forum
system bot seems to replace the GIF with a JPG automatically):
- balena-cli version: 12.38.7
- Device type: rapsberry pi 4
- balenaOS version: raspberrypi4-64-2.65.0+rev1-dev-v12.2.11
Thanks in advance for your help.