Skip to content

Commit 443fdc6

Browse files
authored
Force warn
1 parent d294908 commit 443fdc6

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/Moq/Interception/CastleProxyFactory.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ sealed class CastleProxyFactory : ProxyFactory
3434
public CastleProxyFactory()
3535
{
3636
this.generationOptions = new ProxyGenerationOptions { Hook = new IncludeObjectMethodsHook(), BaseTypeForInterfaceProxy = typeof(InterfaceProxy) };
37-
this.generator = new ProxyGenerator()
38-
{
39-
Logger = NullLogger.Instance,
40-
};
37+
this.generator = new ProxyGenerator();
38+
(this.generator.Logger as TraceLogger)?.Level = LoggerLevel.Warn;
4139

4240
this.classGenerators = new ConcurrentDictionary<string, ProxyGenerator>();
4341
}

0 commit comments

Comments
 (0)