Skip to content

Commit 18cc6dd

Browse files
committed
adding more logs
1 parent d9b9d70 commit 18cc6dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

runtime/tchannel_client.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -251,15 +251,15 @@ func (c *TChannelClient) call(
251251
call.success = false
252252

253253
sc, ctx := c.getDynamicChannelWithFallback(reqHeaders, c.sc, ctx)
254-
ctx = call.contextLogger.WarnZ(ctx, fmt.Sprintf("Initiating tchannel call with attempt : %d", rs.Attempt))
254+
ctx = call.contextLogger.Warn(ctx, fmt.Sprintf("Initiating tchannel call with attempt : %d", rs.Attempt))
255255
call.call, cerr = sc.BeginCall(ctx, call.serviceMethod, &tchannel.CallOptions{
256256
Format: tchannel.Thrift,
257257
ShardKey: GetShardKeyFromCtx(ctx),
258258
RequestState: rs,
259259
RoutingDelegate: GetRoutingDelegateFromCtx(ctx),
260260
})
261261
if call.call == nil && cerr == nil {
262-
ctx = call.contextLogger.WarnZ(ctx, "Could not make tchannel call")
262+
ctx = call.contextLogger.Warn(ctx, "Could not make tchannel call")
263263
}
264264
if cerr != nil {
265265
return errors.Wrapf(
@@ -269,7 +269,7 @@ func (c *TChannelClient) call(
269269
}
270270

271271
if call.call != nil && call.call.Response() != nil {
272-
ctx = call.contextLogger.WarnZ(ctx, fmt.Sprintf("outbound call response format : %s", call.call.Response().Format().String()))
272+
ctx = call.contextLogger.Warn(ctx, fmt.Sprintf("outbound call response format : %s", call.call.Response().Format().String()))
273273
}
274274
// trace request
275275
reqHeaders = tchannel.InjectOutboundSpan(call.call.Response(), reqHeaders)

0 commit comments

Comments
 (0)