Banner Support for profiles, Some cleanup/refactoring. Country for metrics. #22

Merged
defnotken merged 13 commits from server-changes into master 2025-10-21 20:50:55 +00:00
2 changed files with 3 additions and 8 deletions
Showing only changes of commit 8d82365d0e - Show all commits

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;