" -c, --config=[path] Config file path (relative to [rundir]) (default: config).\n"
" -n, --noninteractive Don't start the read-eval-print loop for stdin+stdout.\n"
" -q, --quiet No command prompt in interactive mode.\n"
- " -v, --verbose Run in verbose mode."
-#ifdef NOVERBOSELOG
- " (Recompile without -DNOVERBOSELOG to activate.)"
-#endif
- "\n"
+ " -v, --verbose Run in verbose mode.\n"
" -V, --version Print version of the server.\n"
" -h, --help Print help and usage.\n"
"Options:\n"
if (unlikely(++task->iter_count > KR_ITER_LIMIT ||
task->timeouts >= KR_TIMEOUT_LIMIT)) {
- #ifndef NOVERBOSELOG
struct kr_rplan *rplan = &req->rplan;
struct kr_query *last = kr_rplan_last(rplan);
if (task->iter_count > KR_ITER_LIMIT) {
if (task->timeouts >= KR_TIMEOUT_LIMIT) {
VERBOSE_MSG(last, "canceling query due to exceeded timeout retries limit of %d\n", KR_TIMEOUT_LIMIT);
}
- #endif
return qr_task_finalize(task, KR_STATE_FAIL);
}
* ``kind='doh'`` in :func:`net.listen` was renamed to ``kind='doh_legacy'``. It is recommended to switch to the new DoH implementation with ``kind='doh2'``.
+Packagers & Developers
+----------------------
+
+* meson option ``verbose_log`` was removed.
+
5.2 to 5.3
==========
#include "lib/defines.h"
#include "lib/utils.h"
-#ifdef NOVERBOSELOG
- #define QRVERBOSE(query, cls, ...)
-#else
- /** Print a debug message related to resolution.
- * \param _query associated kr_query, may be NULL
- * \param _cls identifying string, typically of length exactly four (padded)
- * \param ... printf-compatible list of parameters
- */
- #define QRVERBOSE(_query, _cls, ...) do { \
- const struct kr_query *_qry = (_query); \
- if (VERBOSE_STATUS || kr_log_qtrace_enabled(_qry)) { \
- kr_log_q(_qry, (_cls), __VA_ARGS__); \
- } \
- } while (false)
-#endif
+/** Print a debug message related to resolution.
+ * \param _query associated kr_query, may be NULL
+ * \param _cls identifying string, typically of length exactly four (padded)
+ * \param ... printf-compatible list of parameters
+ */
+#define QRVERBOSE(_query, _cls, ...) do { \
+ const struct kr_query *_qry = (_query); \
+ if (VERBOSE_STATUS || kr_log_qtrace_enabled(_qry)) { \
+ kr_log_q(_qry, (_cls), __VA_ARGS__); \
+ } \
+} while (false)
/** Layer processing states. Only one value at a time (but see TODO).
*
* The most important part is to check for spoofing: is_paired_to_query() */
query->flags.PKT_IS_SANE = true;
-#ifndef NOVERBOSELOG
- const knot_lookup_t *rcode = knot_lookup_by_id(knot_rcode_names, knot_wire_get_rcode(pkt->wire));
-#endif
+ const knot_lookup_t *rcode = NULL;
+ if (KR_LOG_LEVEL_IS(LOG_DEBUG))
+ rcode = knot_lookup_by_id(knot_rcode_names, knot_wire_get_rcode(pkt->wire));
// We can't return directly from the switch because we have to give feedback to server selection first
int ret = 0;
ITERATE_LAYERS(request, NULL, finish);
-#ifndef NOVERBOSELOG
struct kr_rplan *rplan = &request->rplan;
struct kr_query *last = kr_rplan_last(rplan);
VERBOSE_MSG(last, "finished in state: %d, queries: %zu, mempool: %zu B\n",
- request->state, rplan->resolved.len, (size_t) mp_total_size(request->pool.ctx));
-#endif
+ request->state, rplan->resolved.len, (size_t) mp_total_size(request->pool.ctx));
/* Trace request finish */
if (request->trace_finish) {
endif
## Additional options
-verbose_log = get_option('verbose_log') == 'enabled' or get_option('verbose_log') == 'auto'
user = get_option('user')
group = get_option('group')
conf_data.set_quoted('libknot_SONAME',
libknot.get_pkgconfig_variable('soname'))
conf_data.set('ENABLE_LIBSYSTEMD', libsystemd.found().to_int())
-conf_data.set('NOVERBOSELOG', not verbose_log)
conf_data.set('ENABLE_SENDMMSG', sendmmsg.to_int())
conf_data.set('ENABLE_XDP', xdp.to_int())
conf_data.set('ENABLE_CAP_NG', capng.found().to_int())
description: 'installs DNSSEC TA to keyfile_default location',
)
-option(
- 'verbose_log',
- type: 'combo',
- choices: [
- 'auto',
- 'enabled',
- 'disabled',
- ],
- value: 'auto',
- description: 'support verbose logging',
-)
-
option(
'user',
type: 'string',