Skip to content

Commit

Permalink
fix(app/hub-base): Update logging configuration
Browse files Browse the repository at this point in the history
- Updated the logging configuration in the `HubBase` class.
- The logging level is now set to `Warning` for environments other than "development".
- This change ensures that only important log messages are displayed in non-development environments.
  • Loading branch information
SakuraIsayeki committed Feb 1, 2024
1 parent 1fd135c commit e76f395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wowskarma.app/src/app/services/hubs/hub-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ export abstract class HubBase {
.withAutomaticReconnect()
// Disabled the MessagePack serializer, due to casing issues.
//.withHubProtocol(new signalRMsgPack.MessagePackHubProtocol())
.configureLogging(environment.production ? signalR.LogLevel.Warning : signalR.LogLevel.Information)
.configureLogging(environment.name !== "development" ? signalR.LogLevel.Warning : signalR.LogLevel.Information)
}

0 comments on commit e76f395

Please sign in to comment.