Skip to content

Commit 16c678e

Browse files
authored
Change logging to debug level and add more details to prevent confusion (#1300)
What changed? Change warning message for unknown event type to debug level Why? It's creating too much warning log that overwhelm system How did you test it? Unit test Potential risks Only remove logger so no danger
1 parent 4e88930 commit 16c678e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

internal/internal_utils.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,10 +468,8 @@ func estimateHistorySize(logger *zap.Logger, event *s.HistoryEvent) int {
468468
sum += len(event.SignalExternalWorkflowExecutionInitiatedEventAttributes.Control)
469469
sum += len(event.SignalExternalWorkflowExecutionInitiatedEventAttributes.Input)
470470
}
471-
472471
default:
473-
logger.Warn("unknown event type", zap.String("Event Type", event.GetEventType().String()))
474-
// Do not fail to be forward compatible with new events
472+
logger.Debug("unsupported event type for history size estimation", zap.String("Event Type", event.GetEventType().String()))
475473
}
476474

477475
return sum

0 commit comments

Comments
 (0)