Skip to content

Commit

Permalink
increased logging level for some selection based scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-deboer committed Jul 18, 2017
1 parent 9b39ac7 commit 55fe3c9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pkg/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ func (r *Router) doSelection() {
u.Host = target.Host
u.Scheme = target.Scheme
}
} else if log.GetLevel() >= log.DebugLevel {
log.Debugf("Selection is unchanged: %v", r.selection)
} else {
log.Infof("Selection is unchanged: %v, out of candidates: %v", r.selection.Selection, r.selection.Candidates)
}
r.selection = result
}
Expand All @@ -143,9 +143,7 @@ func (r *Router) doSelection() {
}
r.theConch <- struct{}{}
default:
if log.GetLevel() >= log.DebugLevel {
log.Debugf("Selection is already in-progress; awaiting result")
}
log.Warnf("Selection is already in-progress; awaiting result")
r.selectionInProgress.RLock()
defer r.selectionInProgress.RUnlock()
}
Expand Down

0 comments on commit 55fe3c9

Please sign in to comment.