Dropping device log due to failed parsing

Hey folks,

I’m developing an app via local-mode / livepush with --debug.

I often see this message in place of missing lines of my logs:
[Debug] Dropping device log due to failed parsing: SyntaxError: Unexpected end of JSON input

Why is this happening? Is my log getting split up and can’t be parsed in chunks?
It’s hard to debug what’s happening when there are missing messages.

Thanks for any help here,
Elliot

Hey @ebradbury, can you confirm what versions of balena CLI and balenaOS you are running? It may also help to know what OS your workstation is running!

Hey @klutchell,

Versions…

balena CLI 12.7.6

balenaOS 2.58.3+rev1

OSX Catalina 10.15.7

Thanks @ebradbury, do you notice the logs being dropped during the build stages, or while the app is running? Could you provide a bit more of a log snippet so we can get an idea of what is happening at the time these messages are dropped?