Skip to content

Commit c3b976e

Browse files
authored
Merge pull request SciSharp#1335 from yileicn/master
optimize DistributedLocker log
2 parents d156a6f + 03620f8 commit c3b976e

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/Infrastructure/BotSharp.Core/Infrastructures/DistributedLocker.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ public async Task<bool> LockAsync(string resource, Func<Task> action, int timeou
3737
{
3838
if (handle == null)
3939
{
40-
_logger.LogWarning($"Acquire lock for {resource} failed due to after {acquireTimeout}s timeout.");
4140
return false;
4241
}
4342

@@ -66,7 +65,6 @@ public bool Lock(string resource, Action action, int timeoutInSeconds = 30, int
6665
{
6766
if (handle == null)
6867
{
69-
_logger.LogWarning($"Acquire lock for {resource} failed due to after {acquireTimeout}s timeout.");
7068
return false;
7169
}
7270
else

0 commit comments

Comments
 (0)