Skip to content

Commit 305be57

Browse files
Fixes logging from plugins' commands (#1263)
1 parent 1c4ddf4 commit 305be57

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

DevProxy/Extensions/ILoggingBuilderExtensions.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ public static ILoggingBuilder ConfigureDevProxyLogging(
3030
.AddFilter("Microsoft.AspNetCore.*", LogLevel.Error)
3131
.AddFilter("Microsoft.Extensions.*", LogLevel.Error)
3232
.AddFilter("System.*", LogLevel.Error)
33-
// Only show plugin messages for the root command
33+
// Only show plugin messages when no global options are set
3434
.AddFilter("DevProxy.Plugins.*", level =>
3535
level >= configuredLogLevel &&
36-
DevProxyCommand.IsRootCommand &&
3736
!DevProxyCommand.HasGlobalOptions)
3837
.AddConsole(options =>
3938
{

0 commit comments

Comments
 (0)