Skip to content

Commit

Permalink
increase a log to warning
Browse files Browse the repository at this point in the history
  • Loading branch information
devhl-labs committed Mar 12, 2024
1 parent 5f97760 commit 1e061a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CocApi.Cache/Library.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ internal static void SetMaxConcurrentEvents(int max)
internal static async Task SendConcurrentEvent<T>(ILogger<T> logger, string methodName, Func<Task> action, CancellationToken cancellationToken)
{
if (Interlocked.Read(ref _currentSemaphoreUsage) >= _maxCount)
logger.LogTrace("Max concurrent events reached.");
logger.LogWarning("Max concurrent events reached.");

await _concurrentEventsSemaphore.WaitAsync(cancellationToken);

Expand Down

0 comments on commit 1e061a1

Please sign in to comment.