Skip to content

Log InnerException while trying to CheckPlugin #15

Description

@mjalil

Hi @ispysoftware,

I'm developing an Agent DVR plugin and at runtime it throws this exception (I see the exception at localhost:8090/logs.html).

CheckPlugin: The type initializer for 'Microsoft.Extensions.DependencyInjection.DependencyInjectionEventSource' threw an exception. 
at Microsoft.Extensions.DependencyInjection.ServiceProvider..ctor(ICollection`1 serviceDescriptors, ServiceProviderOptions options) 
at Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(IServiceCollection services, ServiceProviderOptions options) 
at Microsoft.Extensions.Logging.LoggerFactory.Create(Action`1 configure) 
at Plugins.InstanceLogging..ctor() in xxx\Logging.cs:line 19 
at Plugins.Logging.CreateInstance() in xxx\Logging.cs:line 103 
at Plugins.Main..ctor() in xxx\Main.cs:line 16 
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)

This error message is not useful, since the details of exception is in InnerException.
please log InnerException too, to help plugin developers

Thank you

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions