aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2017-03-07 17:49:13 -0800
committerGravatar Muxi Yan <mxyan@google.com>2017-03-07 17:49:13 -0800
commit43730581800577cf0e02b66677fe73841bdbecfe (patch)
tree84df85dd32eaf12e9809489d8ea42a0101789bff /src
parent7e49365f920a874b5133cb05884076b0f556e7ac (diff)
Add comment to logging operations batch
Diffstat (limited to 'src')
-rw-r--r--src/objective-c/GRPCClient/private/GRPCWrappedCall.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCWrappedCall.m b/src/objective-c/GRPCClient/private/GRPCWrappedCall.m
index 4476a41bd9..46e9fee7e1 100644
--- a/src/objective-c/GRPCClient/private/GRPCWrappedCall.m
+++ b/src/objective-c/GRPCClient/private/GRPCWrappedCall.m
@@ -276,6 +276,8 @@
}
- (void)startBatchWithOperations:(NSArray *)operations errorHandler:(void (^)())errorHandler {
+ // Keep logs of op batches when we are running tests. Disabled when in production for improved
+ // performance.
#ifdef GRPC_TEST_OBJC
[GRPCOpBatchLog addOpBatchToLog:operations];
#endif