-/* $OpenBSD: resolver.c,v 1.134 2021/01/24 18:29:15 florian Exp $ */
+/* $OpenBSD: resolver.c,v 1.135 2021/01/25 16:56:59 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
"%lu", __func__,
IMSG_DATA_SIZE(imsg));
memcpy(&verbose, imsg.data, sizeof(verbose));
- if ((log_getverbose() & OPT_VERBOSE3)
+ if (log_getdebug() && (log_getverbose() & OPT_VERBOSE3)
!= (verbose & OPT_VERBOSE3))
restart_ub_resolvers();
log_setverbose(verbose);
if (!log_getdebug()) {
if((err = ub_ctx_set_option(res->ctx, "use-syslog:",
- "yes")) != 0) {
+ "no")) != 0) {
ub_ctx_delete(res->ctx);
free(res);
- log_warnx("error setting use-syslog: yes: %s",
+ log_warnx("error setting use-syslog: no: %s",
ub_strerror(err));
return (NULL);
}
+ ub_ctx_debugout(res->ctx, NULL);
}
break;
-.\" $OpenBSD: unwind.8,v 1.9 2020/10/29 17:28:12 solene Exp $
+.\" $OpenBSD: unwind.8,v 1.10 2021/01/25 16:57:00 florian Exp $
.\"
.\" Copyright (c) 2018 Florian Obser <florian@openbsd.org>
.\" Copyright (c) 2016 Kenneth R Westerback <kwesterback@gmail.com>
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: October 29 2020 $
+.Dd $Mdocdate: January 25 2021 $
.Dt UNWIND 8
.Os
.Sh NAME
Multiple
.Fl v
options increase the verbosity.
+Debug output from libunbound is only available when logging to
+.Em stderr .
.El
.Sh FILES
.Bl -tag -width "/var/db/unwind.keyXXX" -compact