Skip to content

Commit e6ba44f

Browse files
committed
chore(logging): adjust log levels and channel size
Change default log level to "Information" for reduced verbosity. Remove unnecessary logging override. Increase bounded channel size to handle more events efficiently.
1 parent e4ba583 commit e6ba44f

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/ES.Kubernetes.Reflector/Watchers/Core/WatcherBackgroundService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken)
3131
CancellationTokenSource.CreateLinkedTokenSource(stoppingToken, absoluteTimeoutCts.Token);
3232
var cancellationToken = cancellationCts.Token;
3333

34-
var eventChannel = Channel.CreateBounded<WatcherEvent>(new BoundedChannelOptions(256)
34+
var eventChannel = Channel.CreateBounded<WatcherEvent>(new BoundedChannelOptions(1024)
3535
{
3636
FullMode = BoundedChannelFullMode.Wait
3737
});

src/ES.Kubernetes.Reflector/appsettings.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@
33
"Using": [ "Serilog.Sinks.Seq" ],
44
"LevelSwitches": { "$consoleLevelSwitch": "Verbose" },
55
"MinimumLevel": {
6-
"Default": "Verbose",
6+
"Default": "Information",
77
"Override": {
88
"Microsoft": "Information",
99
"System.Net.Http": "Warning",
1010
"Polly": "Warning",
1111
"Microsoft.Hosting.Lifetime": "Information",
1212
"Microsoft.AspNetCore": "Warning",
1313
"Microsoft.AspNetCore.DataProtection": "Error",
14-
"ES.FX": "Information",
15-
"ES.Kubernetes.Reflector": "Information"
14+
"ES.FX": "Information"
1615
}
1716
},
1817
"WriteTo": [

0 commit comments

Comments
 (0)