Fix debug.api config options description.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2024-02-10 09:34:25 +01:00
parent 82f8abe71f
commit ec37efd77f
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -1196,7 +1196,7 @@ void initConfig(struct config *conf)
conf->debug.regex.d.b = false;
conf->debug.api.k = "debug.api";
conf->debug.api.h = "Print extra debugging information during telnet API calls. Currently only used to send extra information when getting all queries.";
conf->debug.api.h = "Print extra debugging information concerning API calls. This includes the request, the request parameters, and the internal details about how the algorithms decide which data to present and in what form. This very verbose output should only be used when debugging specific API issues and can be helpful, e.g., when a client cannot connect due to an obscure API error. Furthermore, this setting enables logging of all API requests (auth log) and details about user authentication attempts.";
conf->debug.api.t = CONF_BOOL;
conf->debug.api.f = FLAG_ADVANCED_SETTING;
conf->debug.api.d.b = false;
-1
View File
@@ -80,7 +80,6 @@ static int redirect_root_handler(struct mg_connection *conn, void *input)
if(config.debug.api.v.b)
{
log_debug(DEBUG_API, "Host header: \"%s\", extracted host: \"%.*s\"", host, (int)host_len, host);
log_debug(DEBUG_API, "URI: %s", uri);
}
+6 -2
View File
@@ -915,8 +915,12 @@
# Controls if FTLDNS should print extended details about regex matching into FTL.log.
regex = true ### CHANGED, default = false
# Print extra debugging information during telnet API calls. Currently only used to
# send extra information when getting all queries.
# Print extra debugging information concerning API calls. This includes the request,
# the request parameters, and the internal details about how the algorithms decide
# which data to present and in what form. This very verbose output should only be used
# when debugging specific API issues and can be helpful, e.g., when a client cannot
# connect due to an obscure API error. Furthermore, this setting enables logging of
# all API requests (auth log) and details about user authentication attempts.
api = true ### CHANGED, default = false
# Print extra debugging information about TLS connections. This includes the TLS