Skip to content

Commit 55fe3c9

Browse files
committed
increased logging level for some selection based scenarios
1 parent 9b39ac7 commit 55fe3c9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pkg/router/router.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ func (r *Router) doSelection() {
130130
u.Host = target.Host
131131
u.Scheme = target.Scheme
132132
}
133-
} else if log.GetLevel() >= log.DebugLevel {
134-
log.Debugf("Selection is unchanged: %v", r.selection)
133+
} else {
134+
log.Infof("Selection is unchanged: %v, out of candidates: %v", r.selection.Selection, r.selection.Candidates)
135135
}
136136
r.selection = result
137137
}
@@ -143,9 +143,7 @@ func (r *Router) doSelection() {
143143
}
144144
r.theConch <- struct{}{}
145145
default:
146-
if log.GetLevel() >= log.DebugLevel {
147-
log.Debugf("Selection is already in-progress; awaiting result")
148-
}
146+
log.Warnf("Selection is already in-progress; awaiting result")
149147
r.selectionInProgress.RLock()
150148
defer r.selectionInProgress.RUnlock()
151149
}

0 commit comments

Comments
 (0)