From e8012d99d0fe5ec26d7e72a98f7a2c37ff08dca8 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Thu, 22 Apr 2021 14:23:06 +0200 Subject: [PATCH] Remove log entries about changed flags. --- virtualsession.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/virtualsession.go b/virtualsession.go index 4e95a66..10d506a 100644 --- a/virtualsession.go +++ b/virtualsession.go @@ -211,7 +211,6 @@ func (s *VirtualSession) AddFlags(flags uint32) bool { } newFlags := old | flags if atomic.CompareAndSwapUint32(&s.flags, old, newFlags) { - log.Printf("Flags for session %s now %d (added %d)", s.PublicId(), newFlags, flags) return true } // Another thread updated the flags while we were checking, retry. @@ -227,7 +226,6 @@ func (s *VirtualSession) RemoveFlags(flags uint32) bool { } newFlags := old & ^flags if atomic.CompareAndSwapUint32(&s.flags, old, newFlags) { - log.Printf("Flags for session %s now %d (removed %d)", s.PublicId(), newFlags, flags) return true } // Another thread updated the flags while we were checking, retry. @@ -242,7 +240,6 @@ func (s *VirtualSession) SetFlags(flags uint32) bool { } if atomic.CompareAndSwapUint32(&s.flags, old, flags) { - log.Printf("Flags for session %s now %d", s.PublicId(), flags) return true } }