Skip to content

Commit

Permalink
Update log message
Browse files Browse the repository at this point in the history
  • Loading branch information
agile.zhou committed Jun 26, 2024
1 parent ba5f323 commit 670f03c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AgileConfig.Server.Apisite/Metrics/MeterService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ public MeterService(IServiceScopeFactory sf)
{
_resourceMonitor = sp.GetService<IResourceMonitor>();
}
catch (Exception ex)
catch
{
var logger = sp.GetService<ILoggerFactory>().CreateLogger<MeterService>();
logger.LogWarning(ex, "Failed to get IResourceMonitor, maybe you are using cgroups v2, currently is not supported.");
logger.LogWarning("Failed to get IResourceMonitor, maybe you are using cgroups v2, currently is not supported.");
}

AppGauge = AgileConfigMeter.CreateObservableGauge<int>("AppCount", () =>
Expand Down

0 comments on commit 670f03c

Please sign in to comment.