mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-04-26 19:30:26 +02:00
Remove log entries about changed flags.
This commit is contained in:
parent
3a2adffab6
commit
e8012d99d0
|
@ -211,7 +211,6 @@ func (s *VirtualSession) AddFlags(flags uint32) bool {
|
||||||
}
|
}
|
||||||
newFlags := old | flags
|
newFlags := old | flags
|
||||||
if atomic.CompareAndSwapUint32(&s.flags, old, newFlags) {
|
if atomic.CompareAndSwapUint32(&s.flags, old, newFlags) {
|
||||||
log.Printf("Flags for session %s now %d (added %d)", s.PublicId(), newFlags, flags)
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
// Another thread updated the flags while we were checking, retry.
|
// Another thread updated the flags while we were checking, retry.
|
||||||
|
@ -227,7 +226,6 @@ func (s *VirtualSession) RemoveFlags(flags uint32) bool {
|
||||||
}
|
}
|
||||||
newFlags := old & ^flags
|
newFlags := old & ^flags
|
||||||
if atomic.CompareAndSwapUint32(&s.flags, old, newFlags) {
|
if atomic.CompareAndSwapUint32(&s.flags, old, newFlags) {
|
||||||
log.Printf("Flags for session %s now %d (removed %d)", s.PublicId(), newFlags, flags)
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
// Another thread updated the flags while we were checking, retry.
|
// 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) {
|
if atomic.CompareAndSwapUint32(&s.flags, old, flags) {
|
||||||
log.Printf("Flags for session %s now %d", s.PublicId(), flags)
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue