Now that manager is integrated into kresd,
I expect these will naturally keep it in sync.
/* Groups */
-/* Don't forget add *_TAG below, log_group_names[] item (log.c) and generate
- * new kres-gen.lua */
+/* Don't forget add *_TAG below, log_group_names[] item (log.c) and generate new kres-gen.lua
+ * and sync the _TAG list with list in ../manager/knot_resolver_manager/datamodel/logging_schema.py */
enum kr_log_group {
LOG_GRP_UNKNOWN = -1,
LOG_GRP_SYSTEM = 1, /* Must be first in enum. */
"manager",
"supervisord",
"cache-gc",
+ ## Now the LOG_GRP_*_TAG defines, exactly from ../../../lib/log.h
"system",
"cache",
"io",
"gnutls",
"tls_cl",
"xdp",
- "zimprt",
- "zscann",
"doh",
"dnssec",
"hint",
"contrl",
"module",
"devel",
- "reqdbg",
+ "renum",
+ "exterr",
+ "rules",
+ "prlayr",
+ # "reqdbg",... (non-displayed section of the enum)
]
-- logging.groups
log_groups({
{% for g in cfg.logging.groups %}
-{% if g != "manager" and g != "supervisord" %}
+{% if g != "manager" and g != "supervisord" and g != "cache-gc" %}
'{{ g }}',
{% endif %}
{% endfor %}