From 8d82365d0eaa59f9565e3c47dbf7b08c0ba90ab8 Mon Sep 17 00:00:00 2001 From: CakeAndBanana Date: Mon, 20 Oct 2025 15:43:29 +0200 Subject: [PATCH] Made logging from information to warning --- .../LightlessSyncAuthService/Services/GeoIPService.cs | 10 +++------- .../LightlessSyncServer/Hubs/LightlessHub.cs | 1 - 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/LightlessSyncServer/LightlessSyncAuthService/Services/GeoIPService.cs b/LightlessSyncServer/LightlessSyncAuthService/Services/GeoIPService.cs index 1ae5ef9..f08892e 100644 --- a/LightlessSyncServer/LightlessSyncAuthService/Services/GeoIPService.cs +++ b/LightlessSyncServer/LightlessSyncAuthService/Services/GeoIPService.cs @@ -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 : "*"; diff --git a/LightlessSyncServer/LightlessSyncServer/Hubs/LightlessHub.cs b/LightlessSyncServer/LightlessSyncServer/Hubs/LightlessHub.cs index 01a09c3..b366bf2 100644 --- a/LightlessSyncServer/LightlessSyncServer/Hubs/LightlessHub.cs +++ b/LightlessSyncServer/LightlessSyncServer/Hubs/LightlessHub.cs @@ -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;