aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar kpayson64 <kpayson@google.com>2016-07-26 10:34:23 -0700
committerGravatar GitHub <noreply@github.com>2016-07-26 10:34:23 -0700
commit9a92b57acde737db092d7b897c56d93e23a0a8ab (patch)
tree9d8368bc56bca96cb4ce6871f58f424a48a9debb
parentba33b538846032baa0497389451830b59ca5ab35 (diff)
parent6be28f1dd99153c09d453668f81c19d620500461 (diff)
Merge pull request #7527 from jskeet/nulllogger
Change the default logger to the NullLogger.
-rw-r--r--src/csharp/Grpc.Core/GrpcEnvironment.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/csharp/Grpc.Core/GrpcEnvironment.cs b/src/csharp/Grpc.Core/GrpcEnvironment.cs
index eeed699712..574e900a0e 100644
--- a/src/csharp/Grpc.Core/GrpcEnvironment.cs
+++ b/src/csharp/Grpc.Core/GrpcEnvironment.cs
@@ -47,7 +47,6 @@ namespace Grpc.Core
/// </summary>
public class GrpcEnvironment
{
- const LogLevel DefaultLogLevel = LogLevel.Info;
const int MinDefaultThreadPoolSize = 4;
static object staticLock = new object();
@@ -58,7 +57,7 @@ namespace Grpc.Core
static readonly HashSet<Channel> registeredChannels = new HashSet<Channel>();
static readonly HashSet<Server> registeredServers = new HashSet<Server>();
- static ILogger logger = new LogLevelFilterLogger(new ConsoleLogger(), DefaultLogLevel);
+ static ILogger logger = new NullLogger();
readonly object myLock = new object();
readonly GrpcThreadPool threadPool;