-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove warning message that regarding unknown event type #1300
Conversation
internal/internal_utils.go
Outdated
default: | ||
logger.Warn("unknown event type", zap.String("Event Type", event.GetEventType().String())) | ||
// Do not fail to be forward compatible with new events | ||
default: // Do not fail to be forward compatible with new events |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can remove default case since it's no-op
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -468,10 +468,6 @@ func estimateHistorySize(logger *zap.Logger, event *s.HistoryEvent) int { | |||
sum += len(event.SignalExternalWorkflowExecutionInitiatedEventAttributes.Control) | |||
sum += len(event.SignalExternalWorkflowExecutionInitiatedEventAttributes.Input) | |||
} | |||
|
|||
default: | |||
logger.Warn("unknown event type", zap.String("Event Type", event.GetEventType().String())) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it could be useful to have this log with Debug level?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, let me change that to debug level logs
b69eb5b
to
2ac0768
Compare
…on (#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
What changed?
Remove warning message for unknown event type
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