1
0
mirror of https://github.com/apple/foundationdb.git synced 2025-05-21 14:02:59 +08:00

Merge pull request from sfc-gh-ngoyal/misc-fixes

Convert the ScopeEventFieldTypeMismatch event to a Sev40 in simulation.
This commit is contained in:
sfc-gh-ngoyal 2022-04-08 12:14:48 -07:00 committed by GitHub
commit b742149869
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -963,7 +963,7 @@ struct DynamicFieldBase {
if (getDerivedTypeName() == metricTypeName<T>())
return (DynamicField<T>*)this;
TraceEvent(SevWarnAlways, "ScopeEventFieldTypeMismatch")
TraceEvent(g_network->isSimulated() ? SevError : SevWarnAlways, "ScopeEventFieldTypeMismatch")
.detail("EventType", eventType.toString())
.detail("FieldName", fieldName().toString())
.detail("OldType", getDerivedTypeName().toString())