Made logging from information to warning

This commit is contained in:
CakeAndBanana
2025-10-20 15:43:29 +02:00
parent b142329d09
commit 8d82365d0e
2 changed files with 3 additions and 8 deletions

View File

@@ -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 : "*";

View File

@@ -16,7 +16,6 @@ using Microsoft.AspNetCore.SignalR;
using Microsoft.EntityFrameworkCore;
using StackExchange.Redis.Extensions.Core.Abstractions;
using System.Collections.Concurrent;
using System.Threading;
namespace LightlessSyncServer.Hubs;