Added some logging for country

This commit is contained in:
CakeAndBanana
2025-10-20 04:05:27 +02:00
parent 8a329ccbaa
commit b142329d09
2 changed files with 11 additions and 2 deletions

View File

@@ -166,6 +166,10 @@ public class GeoIPService : IHostedService
if (_dbReader!.TryCity(ip, out var response))
{
_logger.LogInformation(ip.ToString());
_logger.LogInformation(response?.Country?.ToString());
_logger.LogInformation(response?.Country?.IsoCode);
var country = response?.Country?.IsoCode;
return !string.IsNullOrEmpty(country) ? country : "*";
}