lib/resolve: fix build with -DNOVERBOSELOG

Fixes #424.
27 jobs for noverboselog
in 3 minutes and 30 seconds and was queued for 6 seconds