Skip to content

Commit

Permalink
Client error log level (#2701)
Browse files Browse the repository at this point in the history
  • Loading branch information
yiminc authored Apr 11, 2022
1 parent 659c052 commit bcf9e57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/history/metricClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion client/matching/metricClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit bcf9e57

Please sign in to comment.