From bcf9e57a0bdc5087c873670a41f4b50b0c266018 Mon Sep 17 00:00:00 2001 From: Yimin Chen Date: Mon, 11 Apr 2022 15:05:03 -0700 Subject: [PATCH] Client error log level (#2701) --- client/history/metricClient.go | 2 +- client/matching/metricClient.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/history/metricClient.go b/client/history/metricClient.go index 02573b87170..31237451f2e 100644 --- a/client/history/metricClient.go +++ b/client/history/metricClient.go @@ -635,7 +635,7 @@ func (c *metricClient) finishMetricsRecording( *serviceerror.WorkflowExecutionAlreadyStarted: // noop - not interest and too many logs default: - c.throttledLogger.Error("history client encountered error", tag.Error(err), tag.ErrorType(err)) + c.throttledLogger.Info("history client encountered error", tag.Error(err), tag.ErrorType(err)) } scope.Tagged(metrics.ServiceErrorTypeTag(err)).IncCounter(metrics.ClientFailures) } diff --git a/client/matching/metricClient.go b/client/matching/metricClient.go index 16c3d97fb1b..9cf3c14f821 100644 --- a/client/matching/metricClient.go +++ b/client/matching/metricClient.go @@ -265,7 +265,7 @@ func (c *metricClient) finishMetricsRecording( // noop - not interest and too many logs default: - c.throttledLogger.Error("matching client encountered error", tag.Error(err), tag.ErrorType(err)) + c.throttledLogger.Info("matching client encountered error", tag.Error(err), tag.ErrorType(err)) } scope.Tagged(metrics.ServiceErrorTypeTag(err)).IncCounter(metrics.ClientFailures) }