Skip to content

Commit 7837b69

Browse files
committed
Always set to info
1 parent 92e5a6f commit 7837b69

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/ElectronNET.Host/api/signalr-bridge.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -91,23 +91,10 @@ class SignalRBridge {
9191
? `${this.hubUrl}?token=${this.authToken}`
9292
: this.hubUrl;
9393

94-
// Determine SignalR log level based on environment
95-
// Warning level suppresses verbose packet-level logging
96-
const { getLogLevel, LogLevel: AppLogLevel } = require("../logger");
97-
let signalRLogLevel;
98-
99-
if (getLogLevel() <= AppLogLevel.DEBUG) {
100-
// Debug mode: show Info level (connection events without packet details)
101-
signalRLogLevel = signalR.LogLevel.Information;
102-
} else {
103-
// Development/Production: only warnings and errors
104-
signalRLogLevel = signalR.LogLevel.Warning;
105-
}
106-
10794
this.connection = new signalR.HubConnectionBuilder()
10895
.withUrl(connectionUrl)
10996
.withAutomaticReconnect()
110-
.configureLogging(new SafeLogger(signalRLogLevel))
97+
.configureLogging(new SafeLogger(signalR.LogLevel.Information))
11198
.build();
11299

113100
// Handle reconnection

0 commit comments

Comments
 (0)