From 35da3cb5b43d956a8e8aca7e1c566e3ad049ece4 Mon Sep 17 00:00:00 2001 From: Joe DeCock Date: Thu, 5 Dec 2024 12:50:21 -0600 Subject: [PATCH] Fix category of license log messages --- src/IdentityServer/Licensing/v2/LicenseExpirationChecker.cs | 6 +++--- src/IdentityServer/Licensing/v2/ProtocolRequestCounter.cs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/IdentityServer/Licensing/v2/LicenseExpirationChecker.cs b/src/IdentityServer/Licensing/v2/LicenseExpirationChecker.cs index 97c68187c..320c9c28b 100644 --- a/src/IdentityServer/Licensing/v2/LicenseExpirationChecker.cs +++ b/src/IdentityServer/Licensing/v2/LicenseExpirationChecker.cs @@ -12,16 +12,16 @@ internal class LicenseExpirationChecker : ILicenseExpirationChecker { private readonly ILicenseAccessor _license; private readonly TimeProvider _timeProvider; - private readonly ILogger _logger; + private readonly ILogger _logger; public LicenseExpirationChecker( ILicenseAccessor license, TimeProvider timeProvider, - ILogger logger) + ILoggerFactory loggerFactory) { _license = license; _timeProvider = timeProvider; - _logger = logger; + _logger = loggerFactory.CreateLogger("Duende.IdentityServer.License"); } /// diff --git a/src/IdentityServer/Licensing/v2/ProtocolRequestCounter.cs b/src/IdentityServer/Licensing/v2/ProtocolRequestCounter.cs index b79feaa50..8bf7e6bf8 100644 --- a/src/IdentityServer/Licensing/v2/ProtocolRequestCounter.cs +++ b/src/IdentityServer/Licensing/v2/ProtocolRequestCounter.cs @@ -12,10 +12,10 @@ internal class ProtocolRequestCounter : IProtocolRequestCounter { public ProtocolRequestCounter( ILicenseAccessor license, - ILogger logger) + ILoggerFactory loggerFactory) { _license = license; - _logger = logger; + _logger = loggerFactory.CreateLogger("Duende.IdentityServer.License"); } /// @@ -24,7 +24,7 @@ public ProtocolRequestCounter( internal uint Threshold = 1000; private readonly ILicenseAccessor _license; - private readonly ILogger _logger; + private readonly ILogger _logger; private bool _warned;