Skip to content

Commit

Permalink
reduce signalr - log to warning level.
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJump committed Oct 28, 2024
1 parent 39d3a98 commit baeb742
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ export class uSyncSignalRContext extends UmbControllerBase {
public readonly add = this.#add.asObservable();

#setupConnection(url: string) {
this.#connection = new signalR.HubConnectionBuilder().withUrl(url).build();
this.#connection = new signalR.HubConnectionBuilder()
.configureLogging(signalR.LogLevel.Warning)
.withUrl(url)
.build();

this.#connection.on('add', (data) => {
this.#add.setValue(data);
Expand Down

0 comments on commit baeb742

Please sign in to comment.