@@ -16,29 +16,29 @@ internal static partial class Log
1616 internal const int IdCacheBackendReadFailure = 6 ;
1717 internal const int IdCacheBackendWriteFailure = 7 ;
1818
19- [ LoggerMessage ( LogLevel . Error , "Cache MaximumPayloadBytes ({bytes}) exceeded" , EventId = IdMaximumPayloadBytesExceeded ) ]
19+ [ LoggerMessage ( LogLevel . Error , "Cache MaximumPayloadBytes ({bytes}) exceeded" , EventId = IdMaximumPayloadBytesExceeded , SkipEnabledCheck = false ) ]
2020 internal static partial void MaximumPayloadBytesExceeded ( this ILogger logger , Exception e , int bytes ) ;
2121
2222 // note that serialization is critical enough that we perform hard failures in addition to logging; serialization
2323 // failures are unlikely to be transient (i.e. connectivity); we would rather this shows up in QA, rather than
2424 // being invisible and people *thinking* they're using cache, when actually they are not
2525
26- [ LoggerMessage ( LogLevel . Error , "Cache serialization failure" , EventId = IdSerializationFailure ) ]
26+ [ LoggerMessage ( LogLevel . Error , "Cache serialization failure" , EventId = IdSerializationFailure , SkipEnabledCheck = false ) ]
2727 internal static partial void SerializationFailure ( this ILogger logger , Exception e ) ;
2828
2929 // (see same notes per SerializationFailure)
30- [ LoggerMessage ( LogLevel . Error , "Cache deserialization failure" , EventId = IdDeserializationFailure ) ]
30+ [ LoggerMessage ( LogLevel . Error , "Cache deserialization failure" , EventId = IdDeserializationFailure , SkipEnabledCheck = false ) ]
3131 internal static partial void DeserializationFailure ( this ILogger logger , Exception e ) ;
3232
33- [ LoggerMessage ( LogLevel . Error , "Cache key empty or whitespace" , EventId = IdKeyEmptyOrWhitespace ) ]
33+ [ LoggerMessage ( LogLevel . Error , "Cache key empty or whitespace" , EventId = IdKeyEmptyOrWhitespace , SkipEnabledCheck = false ) ]
3434 internal static partial void KeyEmptyOrWhitespace ( this ILogger logger ) ;
3535
36- [ LoggerMessage ( LogLevel . Error , "Cache key maximum length exceeded (maximum: {maxLength}, actual: {keyLength})" , EventId = IdMaximumKeyLengthExceeded ) ]
36+ [ LoggerMessage ( LogLevel . Error , "Cache key maximum length exceeded (maximum: {maxLength}, actual: {keyLength})" , EventId = IdMaximumKeyLengthExceeded , SkipEnabledCheck = false ) ]
3737 internal static partial void MaximumKeyLengthExceeded ( this ILogger logger , int maxLength , int keyLength ) ;
3838
39- [ LoggerMessage ( LogLevel . Error , "Cache backend read failure" , EventId = IdCacheBackendReadFailure ) ]
39+ [ LoggerMessage ( LogLevel . Error , "Cache backend read failure" , EventId = IdCacheBackendReadFailure , SkipEnabledCheck = false ) ]
4040 internal static partial void CacheBackendReadFailure ( this ILogger logger , Exception ex ) ;
4141
42- [ LoggerMessage ( LogLevel . Error , "Cache backend write failure" , EventId = IdCacheBackendWriteFailure ) ]
42+ [ LoggerMessage ( LogLevel . Error , "Cache backend write failure" , EventId = IdCacheBackendWriteFailure , SkipEnabledCheck = false ) ]
4343 internal static partial void CacheBackendWriteFailure ( this ILogger logger , Exception ex ) ;
4444}
0 commit comments