]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
logging: linter nitpicks
authorTomas Krizek <tomas.krizek@nic.cz>
Tue, 27 Jul 2021 21:56:59 +0000 (23:56 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Thu, 29 Jul 2021 09:44:47 +0000 (11:44 +0200)
.luacheckrc
doc/config-logging-monitoring.rst
lib/log.c

index 0134706e8d7f7888861d6da3379e4e762597a5bb..28ef054d19af668d6549573eca348d8c19bd52e0 100644 (file)
@@ -39,6 +39,9 @@ new_read_globals = {
        'log_fmt',
        'log_qry',
        'log_req',
+       'log_level',
+       'log_target',
+       'log_groups',
        'LOG_CRIT',
        'LOG_ERR',
        'LOG_WARNING',
index 6e6035296343443259d53b1ab8e320e8c28d6db8..4516bee5629e3bc173821d4cc77442d34e8e7b47 100644 (file)
@@ -62,6 +62,7 @@ set by :func:`log_level`.
   remove all log groups, call the function with an empty table.
 
   .. code-block:: lua
+
      log_groups({'io', 'tls'}  -- turn on debug logging for io and tls groups
      log_groups()              -- list active log groups
      log_groups({})            -- remove all log groups
index ede5b83ec8b78d24856832f5d4ba88517f0a3899..ef1e508b599da60074cc40cad22f21b9f952fc9d 100644 (file)
--- a/lib/log.c
+++ b/lib/log.c
@@ -220,8 +220,6 @@ void kr_log_level_set(kr_log_level_t level)
        setlogmask(LOG_UPTO(kr_log_level));
 
        kr_gnutls_log_level_set();
-
-       return;
 }
 
 void kr_log_group_add(enum kr_log_group group)