#18 DeviceLog messages appears to be truncated?

xmlwriter
closed
aliazzz
None
2020-05-01
2019-05-17
aliazzz
No

It appears that the DeviceLog message output is truncated. This means that the assert messages get truncated and so import information about which assert failed will not appear.

It seems at least some characters from the message get dropped by the devicelog.
The message itself is correct as it is sent to the device log and the debug log from within the same function;

Device Log()

Debug Log()

Discussion

  • aliazzz

    aliazzz - 2019-05-17

    This can either mean two things:

    1. Either the Device Log class still contains a bug
      or
    2. The Device Log itself truncates the consumed message to a maximum length of 127 chararcters
     
  • aliazzz

    aliazzz - 2019-05-17

    I found out that the device itself is probably to blame... it can not display messages > 127 characters.

    workarounds;
    1) split the logmessage over two lines,
    2) Use alternative logging mechanism (like the debuglogger),
    3) Use an Element Collection List.

    Other tricks?
    1) SDCard?
    2) OSCAT?

     
  • aliazzz

    aliazzz - 2019-05-18

    Confirmed by Ingo, it is limited around 128

     
  • aliazzz

    aliazzz - 2019-05-18
    • status: open --> closed
    • assigned_to: aliazzz
     

Log in to post a comment.