You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logger?.LogInformation("Consuming {ExecutionProvider}, with {HandlerCount} result handler{MoreOrOne}.",Provider.GetType().FullName,handlers.Length,handlers.Length!=1?"(s)":"");
71
+
if(Logger?.IsEnabled(LogLevel.Information)==true)
72
+
Logger.LogInformation("Consuming {ExecutionProvider}, with {HandlerCount} result handler{MoreOrOne}.",Provider.GetType().FullName,handlers.Length,handlers.Length!=1?"(s)":"");
@@ -92,17 +101,20 @@ public CommandExecutionFactory(IComponentProvider execProvider, IServiceProvider
92
101
/// <exception cref="NotSupportedException">Thrown when the <see cref="IServiceProvider"/> cannot resolve the scoped <see cref="IExecutionScope"/> as its internal implementation. When customizing the <see cref="IExecutionScope"/> implementation, the factory must be overridden to support it.</exception>
thrownewInvalidOperationException($"{nameof(IExecutionScope)} must have a context set before executing it. Use {nameof(CreateScope)} with a provided context or assign the scope before it enters {nameof(ExecuteScope)}.");
Logger?.LogError(ex,"Failed to start HTTP listener. Ensure that the application has permission to use the specified prefixes, or specify permissions in case none are set.");
56
+
if(Logger?.IsEnabled(LogLevel.Error)==true)
57
+
Logger.LogError(ex,"Failed to start HTTP listener. Ensure that the application has permission to use the specified prefixes, or specify permissions in case none are set.");
0 commit comments