From 3b19e8c57e024119da6af00a5d7b53f0b239ae3f Mon Sep 17 00:00:00 2001 From: Maycon Santos Date: Tue, 4 Apr 2023 20:04:18 +0200 Subject: [PATCH] Use Trace level for account lock messages --- management/server/file_store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/management/server/file_store.go b/management/server/file_store.go index f79179841..b5dcf9248 100644 --- a/management/server/file_store.go +++ b/management/server/file_store.go @@ -240,7 +240,7 @@ func (s *FileStore) AcquireGlobalLock() (unlock func()) { // AcquireAccountLock acquires account lock and returns a function that releases the lock func (s *FileStore) AcquireAccountLock(accountID string) (unlock func()) { - log.Debugf("acquiring lock for account %s", accountID) + log.Tracef("acquiring lock for account %s", accountID) start := time.Now() value, _ := s.accountLocks.LoadOrStore(accountID, &sync.Mutex{}) mtx := value.(*sync.Mutex) @@ -248,7 +248,7 @@ func (s *FileStore) AcquireAccountLock(accountID string) (unlock func()) { unlock = func() { mtx.Unlock() - log.Debugf("released lock for account %s in %v", accountID, time.Since(start)) + log.Tracef("released lock for account %s in %v", accountID, time.Since(start)) } return unlock