diff options
author | Muxi Yan <mxyan@google.com> | 2018-05-29 10:45:04 -0700 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2018-05-29 10:45:04 -0700 |
commit | 4dbd18aec54f2818187f51d6ffef59ad72aef9a9 (patch) | |
tree | bb6e2028ce8d964a1cd17355ba6cb98b28d0c0cf /src/objective-c/GRPCClient/private/GRPCHost.m | |
parent | 5d83bedb77d14a5d0240bc9f11c86c45704f30f6 (diff) |
Make mobile log per-host and rename as context
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCHost.m')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCHost.m | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCHost.m b/src/objective-c/GRPCClient/private/GRPCHost.m index c3ea9afc37..bd5fd94118 100644 --- a/src/objective-c/GRPCClient/private/GRPCHost.m +++ b/src/objective-c/GRPCClient/private/GRPCHost.m @@ -18,7 +18,6 @@ #import "GRPCHost.h" -#import <GRPCClient/GRPCCall+MobileLog.h> #import <GRPCClient/GRPCCall.h> #include <grpc/grpc.h> #include <grpc/grpc_security.h> @@ -223,9 +222,9 @@ static NSMutableDictionary *kHostCache; args[@GRPC_ARG_KEEPALIVE_TIMEOUT_MS] = [NSNumber numberWithInt:_keepaliveTimeout]; } - id logConfig = [GRPCCall logConfig]; - if (logConfig != nil) { - args[@GRPC_ARG_MOBILE_LOG_CONFIG] = logConfig; + id logContext = self.logContext; + if (logContext != nil) { + args[@GRPC_ARG_MOBILE_LOG_CONTEXT] = logContext; } if (useCronet) { |