Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 92b9028

Browse files
authored
Reduce default log level (#159)
1 parent 87c12db commit 92b9028

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Program.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using DevLab.JmesPath;
44
using Microsoft.Extensions.Configuration;
55
using Microsoft.Extensions.DependencyInjection;
6+
using Microsoft.Extensions.Logging;
67
using Microsoft.Extensions.Hosting;
78
using Microsoft.Graph.Cli.Core.Authentication;
89
using Microsoft.Graph.Cli.Core.Commands.Authentication;
@@ -124,6 +125,9 @@ static IHostBuilder CreateHostBuilder(string[] args) =>
124125
services.AddSingleton<JmesPath>();
125126
services.AddSingleton<IOutputFormatterFactory, OutputFormatterFactory>();
126127
services.AddSingleton<IPagingService, GraphODataPagingService>();
128+
}).ConfigureLogging((ctx, logBuilder) =>
129+
{
130+
logBuilder.SetMinimumLevel(LogLevel.Warning);
127131
});
128132

129133
static void ConfigureAppConfiguration(IConfigurationBuilder builder)

0 commit comments

Comments
 (0)