diff --git a/hitless/hitless_manager.go b/hitless/hitless_manager.go index c8375de5..edaca903 100644 --- a/hitless/hitless_manager.go +++ b/hitless/hitless_manager.go @@ -179,11 +179,11 @@ func (hm *HitlessManager) UntrackOperationWithConnID(seqID int64, connID uint64) // Decrement active operation count only if operation existed hm.activeOperationCount.Add(-1) } else { - for key, _ := range hm.GetActiveMovingOperations() { - internal.Logger.Printf(context.Background(), "hitless: active op: key: %s", key.String()) - } if hm.config.LogLevel >= LogLevelDebug { // Debug level internal.Logger.Printf(context.Background(), "hitless: conn[%d] seqID[%d] Operation not found for untracking: %s", connID, seqID, key.String()) + for key := range hm.GetActiveMovingOperations() { + internal.Logger.Printf(context.Background(), "hitless: active op: key: %s", key.String()) + } } } }