Lower logging level of proxy cache messages
This commit is contained in:
parent
b81eda47aa
commit
992a37dd1b
@ -41,7 +41,7 @@ namespace PluralKit.Bot
|
|||||||
|
|
||||||
public async Task InvalidateResultsForSystem(PKSystem system)
|
public async Task InvalidateResultsForSystem(PKSystem system)
|
||||||
{
|
{
|
||||||
_logger.Information("Invalidating proxy cache for system {System}", system.Id);
|
_logger.Debug("Invalidating proxy cache for system {System}", system.Id);
|
||||||
using (var conn = await _conn.Obtain())
|
using (var conn = await _conn.Obtain())
|
||||||
foreach (var accountId in await conn.QueryAsync<ulong>("select uid from accounts where system = @Id", system))
|
foreach (var accountId in await conn.QueryAsync<ulong>("select uid from accounts where system = @Id", system))
|
||||||
_cache.Remove(GetKey(accountId));
|
_cache.Remove(GetKey(accountId));
|
||||||
@ -49,7 +49,7 @@ namespace PluralKit.Bot
|
|||||||
|
|
||||||
private async Task<IEnumerable<ProxyDatabaseResult>> FetchResults(ulong account, ICacheEntry entry)
|
private async Task<IEnumerable<ProxyDatabaseResult>> FetchResults(ulong account, ICacheEntry entry)
|
||||||
{
|
{
|
||||||
_logger.Information("Members for account {Account} not in cache, fetching", account);
|
_logger.Debug("Members for account {Account} not in cache, fetching", account);
|
||||||
using (var conn = await _conn.Obtain())
|
using (var conn = await _conn.Obtain())
|
||||||
{
|
{
|
||||||
var results = (await conn.QueryAsync<PKMember, PKSystem, ProxyDatabaseResult>(
|
var results = (await conn.QueryAsync<PKMember, PKSystem, ProxyDatabaseResult>(
|
||||||
|
Loading…
Reference in New Issue
Block a user