Skip to content

Commit fda8e41

Browse files
authored
Removing noisy log when ignoring an RpcLog (#10796)
1 parent 22d7430 commit fda8e41

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/WebJobs.Script.Grpc/Channel/GrpcWorkerChannel.Log.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,9 @@ private static class Logger
2222
new EventId(821, nameof(InvocationResponseReceived)),
2323
"InvocationResponse received for invocation: '{invocationId}'");
2424

25-
private static readonly Action<ILogger, string, Exception> _ignoringRpcLog = LoggerMessage.Define<string>(
26-
LogLevel.Debug,
27-
new EventId(822, nameof(IgnoringRpcLog)),
28-
"Ignoring RpcLog from invocation '{invocationId}' because there is no matching ScriptInvocationContext.");
29-
3025
internal static void ChannelReceivedMessage(ILogger logger, string workerId, ContentOneofCase msgType) => _channelReceivedMessage(logger, workerId, msgType, null);
3126

3227
internal static void InvocationResponseReceived(ILogger logger, string invocationId) => _invocationResponseReceived(logger, invocationId, null);
33-
34-
internal static void IgnoringRpcLog(ILogger logger, string invocationId) => _ignoringRpcLog(logger, invocationId, null);
3528
}
3629
}
3730
}

src/WebJobs.Script.Grpc/Channel/GrpcWorkerChannel.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,10 +1295,6 @@ internal void Log(GrpcEvent msg)
12951295
}
12961296
}, (context, rpcLog, _isWorkerApplicationInsightsLoggingEnabled));
12971297
}
1298-
else
1299-
{
1300-
Logger.IgnoringRpcLog(_workerChannelLogger, rpcLog.InvocationId);
1301-
}
13021298
}
13031299

13041300
internal void SystemLog(GrpcEvent msg)

0 commit comments

Comments
 (0)