JoaoLopesF / RemoteDebug

Library for Arduino to debug projects over WiFi, with web app or telnet, with print commands like Serial Monitor
MIT License
613 stars 127 forks source link

The opening bracket is missing when you switch off log level display #89

Open karol-brejna-i opened 1 year ago

karol-brejna-i commented 1 year ago

Describe the bug When showing the log level is disabled, the opening bracket of the logged message is missing (see below).

What we get after disabling the showing of the log level:

* Debug: Command received: l
* Show debug level: On
(I p:^2001ms) (loop)(C1) * ąćęłńóśźżÂ
(I p:^2001ms) (loop)(C1) * ąćęłńóśźżÂ
l
* Debug: Command received: l
* Show debug level: Off
 p:^2001ms) (loop)(C1) * ąćęłńóśźżÂ
 p:^2001ms) (loop)(C1) * ąćęłńóśźżÂ
 p:^2000ms) (loop)(C1) * ąćęłńóśźżÂ
 p:^2001ms) (loop)(C1) * ąćęłńóśźżÂ

Please, note, that the opening bracket is missing.

To Reproduce Start some example app, connect with telnet, send 'l' command (disable log level).

Expected behavior When log level display is off, the message should start with '(' still.

Arduino Information: