Verbose output
--------------
-If the debug logging is compiled in, you can turn on verbose tracing of server operation with the ``-v`` option.
+If the debug logging is compiled in, i.e. not turned off by ``-DNLOGDEBUG``, you can turn on verbose tracing of server operation with the ``-v`` option.
You can also toggle it on runtime with ``verbose(true|false)`` command.
.. code-block:: bash
" -k, --keyfile=[path] File containing trust anchors (DS or DNSKEY).\n"
" -f, --forks=N Start N forks sharing the configuration.\n"
" -q, --quiet Quiet output, no prompt in interactive mode.\n"
- " -v, --verbose Run in verbose mode.\n"
+ " -v, --verbose Run in verbose mode."
+#ifdef NLOGDEBUG
+ " (Recompile without -DNLOGDEBUG to activate.)"
+#endif
+ "\n"
" -V, --version Print version of the server.\n"
" -h, --help Print help and usage.\n"
"Options:\n"
break;
case 'v':
kr_debug_set(true);
+#ifdef NLOGDEBUG
+ kr_log_info("--verbose flag has no effect due to compilation with -DNLOGDEBUG.\n");
+#endif
break;
case 'q':
g_quiet = true;