Change Redis cache logging from Debug to Info level

Makes cache hits/misses visible in production logs without needing Debug level
This commit is contained in:
2026-01-30 02:20:11 -05:00
parent 489159b424
commit 34bfc20d28

View File

@@ -59,11 +59,11 @@ public class RedisCacheService
var value = await _db!.StringGetAsync(key); var value = await _db!.StringGetAsync(key);
if (value.HasValue) if (value.HasValue)
{ {
_logger.LogDebug("Redis cache HIT: {Key}", key); _logger.LogInformation("Redis cache HIT: {Key}", key);
} }
else else
{ {
_logger.LogDebug("Redis cache MISS: {Key}", key); _logger.LogInformation("Redis cache MISS: {Key}", key);
} }
return value; return value;
} }
@@ -105,7 +105,7 @@ public class RedisCacheService
var result = await _db!.StringSetAsync(key, value, expiry); var result = await _db!.StringSetAsync(key, value, expiry);
if (result) if (result)
{ {
_logger.LogDebug("Redis cache SET: {Key} (TTL: {Expiry})", key, expiry?.ToString() ?? "none"); _logger.LogInformation("Redis cache SET: {Key} (TTL: {Expiry})", key, expiry?.ToString() ?? "none");
} }
return result; return result;
} }