We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d294908 commit 443fdc6Copy full SHA for 443fdc6
1 file changed
src/Moq/Interception/CastleProxyFactory.cs
@@ -34,10 +34,8 @@ sealed class CastleProxyFactory : ProxyFactory
34
public CastleProxyFactory()
35
{
36
this.generationOptions = new ProxyGenerationOptions { Hook = new IncludeObjectMethodsHook(), BaseTypeForInterfaceProxy = typeof(InterfaceProxy) };
37
- this.generator = new ProxyGenerator()
38
- {
39
- Logger = NullLogger.Instance,
40
- };
+ this.generator = new ProxyGenerator();
+ (this.generator.Logger as TraceLogger)?.Level = LoggerLevel.Warn;
41
42
this.classGenerators = new ConcurrentDictionary<string, ProxyGenerator>();
43
}
0 commit comments