File tree Expand file tree Collapse file tree 2 files changed +1
-28
lines changed
Expand file tree Collapse file tree 2 files changed +1
-28
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ internal static class ConfigurationExtensions
88 private const string PersistentConfigurationPath = "PersistentStorage" ;
99 private const string RepositoryNameConfigurationPath = "RepositoryName" ;
1010 private const string TimeZoneConfigurationPath = "DefaultTimeZone" ;
11- private const string RedisConfigurationPath = "Redis" ;
12- private const string LokiConfigurationPath = "Loki" ;
1311
1412 internal static string GetAllowedCorsOrigins ( this IConfiguration configuration )
1513 {
@@ -54,27 +52,4 @@ public static string GetDefaultTimeZone(this IConfiguration configuration)
5452
5553 return timeZone ;
5654 }
57-
58- public static string GetRedisUrl ( this IConfiguration configuration )
59- {
60- var redisConnectionString = configuration . GetConnectionString ( RedisConfigurationPath ) ;
61- if ( redisConnectionString is null )
62- {
63- throw new InvalidOperationException ( "Redis connection string is not configured." ) ;
64- }
65-
66- return redisConnectionString ;
67- }
68-
69- public static string GetLokiUrl ( this IConfiguration configuration )
70- {
71- var lokiUrl = configuration . GetConnectionString ( LokiConfigurationPath ) ;
72-
73- if ( lokiUrl is null )
74- {
75- throw new InvalidOperationException ( "Loki URL is not configured." ) ;
76- }
77-
78- return lokiUrl ;
79- }
8055}
Original file line number Diff line number Diff line change @@ -155,9 +155,7 @@ private static bool ShouldExcludeSwaggerLogs(this LogEvent logEvent)
155155 private static bool ShouldExcludeMassTransitHealthCheckLogs ( this LogEvent logEvent )
156156 {
157157 var message = logEvent . RenderMessage ( ) ;
158- return message . Contains ( "Health check masstransit-bus" , StringComparison . OrdinalIgnoreCase )
159- && message . Contains ( "Unhealthy" , StringComparison . OrdinalIgnoreCase )
160- && message . Contains ( "Not ready: not started" , StringComparison . OrdinalIgnoreCase ) ;
158+ return message . StartsWith ( "Health check masstransit-bus with status Unhealthy completed after" ) ;
161159 }
162160
163161 #endregion
You can’t perform that action at this time.
0 commit comments