diff --git a/src/logging/Logger.cpp b/src/logging/Logger.cpp index e21ba3601..dbad9a5fa 100644 --- a/src/logging/Logger.cpp +++ b/src/logging/Logger.cpp @@ -78,7 +78,8 @@ namespace SlimeVR Serial.printf("[%-5s] [%s] %s\n", levelToString(level), buf, buffer); - if (getRemoteCmdConncted()) { + if (getRemoteCmdConncted()) + { getRemoteCmdStream().printf("[%-5s] [%s] %s\n", levelToString(level), buf, buffer); } } diff --git a/src/logging/Logger.h b/src/logging/Logger.h index 7a37a2772..98317805f 100644 --- a/src/logging/Logger.h +++ b/src/logging/Logger.h @@ -100,7 +100,8 @@ namespace SlimeVR Serial.println(); - if (getRemoteCmdConncted()) { + if (getRemoteCmdConncted()) + { Stream & networkStream = getRemoteCmdStream(); networkStream.printf("[%-5s] [%s] %s", levelToString(level), buf, str);