Made logging from information to warning
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
using LightlessSyncAuthService.Utils;
|
||||
using LightlessSyncShared;
|
||||
using LightlessSyncShared.Services;
|
||||
using LightlessSyncShared.Utils.Configuration;
|
||||
using MaxMind.GeoIP2;
|
||||
using MaxMind.GeoIP2.Model;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using System.Net;
|
||||
using System.Security.Claims;
|
||||
|
||||
namespace LightlessSyncAuthService.Services;
|
||||
|
||||
@@ -166,9 +162,9 @@ 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);
|
||||
_logger.LogWarning(ip.ToString());
|
||||
_logger.LogWarning(response?.Country?.ToString());
|
||||
_logger.LogWarning(response?.Country?.IsoCode);
|
||||
|
||||
var country = response?.Country?.IsoCode;
|
||||
return !string.IsNullOrEmpty(country) ? country : "*";
|
||||
|
||||
Reference in New Issue
Block a user