Lower logging level of proxy cache messages

This commit is contained in:
Ske 2019-12-22 12:50:56 +01:00
parent b81eda47aa
commit 992a37dd1b

View File

@ -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>(