mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 10:10:12 +00:00
Updates to Elastic logging
This commit is contained in:
parent
ae9ed0f4ee
commit
ae82bb4168
18 changed files with 150 additions and 97 deletions
|
|
@ -56,7 +56,7 @@ namespace Myriad.Gateway.Limit
|
|||
if (!queue.TryDequeue(out var tcs))
|
||||
continue;
|
||||
|
||||
_logger.Information(
|
||||
_logger.Debug(
|
||||
"Allowing identify for bucket {BucketId} through ({QueueLength} left in bucket queue)",
|
||||
bucket, queue.Count);
|
||||
tcs.SetResult();
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ namespace Myriad.Gateway.Limit
|
|||
public TwilightGatewayRatelimiter(ILogger logger, string url)
|
||||
{
|
||||
_url = url;
|
||||
_logger = logger;
|
||||
_logger = logger.ForContext<TwilightGatewayRatelimiter>();
|
||||
}
|
||||
|
||||
public async Task Identify(int shard)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue