summaryrefslogtreecommitdiffstats
path: root/daemon/bindings
diff options
context:
space:
mode:
authorLukáš Ježek <lukas.jezek@nic.cz>2021-06-18 15:02:17 +0200
committerTomas Krizek <tomas.krizek@nic.cz>2021-07-29 11:40:50 +0200
commitf994f1027650af50b78877dbf6bf6e14d5daffc8 (patch)
tree98476b60ab185ce0597064dea867b5123c6ac9f3 /daemon/bindings
parentlog: remove hard-coded prefix from log messages (diff)
downloadknot-resolver-f994f1027650af50b78877dbf6bf6e14d5daffc8.tar.xz
knot-resolver-f994f1027650af50b78877dbf6bf6e14d5daffc8.zip
log: shortening LOG_GRP_<SOMETHING> to <SOMETHING>
Diffstat (limited to 'daemon/bindings')
-rw-r--r--daemon/bindings/cache.c2
-rw-r--r--daemon/bindings/impl.h2
-rw-r--r--daemon/bindings/net.c10
3 files changed, 7 insertions, 7 deletions
diff --git a/daemon/bindings/cache.c b/daemon/bindings/cache.c
index b761fdb0..ef3f7b0b 100644
--- a/daemon/bindings/cache.c
+++ b/daemon/bindings/cache.c
@@ -206,7 +206,7 @@ static int cache_open(lua_State *L)
* even in case of not having any work to do. */
ret = kr_cache_check_health(&engine->resolver.cache, 5000);
if (ret != 0) {
- kr_log_error(LOG_GRP_CACHE, "periodic health check failed (ignored): %s\n",
+ kr_log_error(CACHE, "periodic health check failed (ignored): %s\n",
kr_strerror(ret));
}
diff --git a/daemon/bindings/impl.h b/daemon/bindings/impl.h
index 0955681e..fe4be2d6 100644
--- a/daemon/bindings/impl.h
+++ b/daemon/bindings/impl.h
@@ -69,7 +69,7 @@ static inline int execute_callback(lua_State *L, int argc)
{
int ret = engine_pcall(L, argc);
if (ret != 0) {
- kr_log_error(LOG_GRP_SYSTEM, "error: %s\n", lua_tostring(L, -1));
+ kr_log_error(SYSTEM, "error: %s\n", lua_tostring(L, -1));
}
/* Clear the stack, there may be event a/o enything returned */
lua_settop(L, 0);
diff --git a/daemon/bindings/net.c b/daemon/bindings/net.c
index 702c8495..1c66358c 100644
--- a/daemon/bindings/net.c
+++ b/daemon/bindings/net.c
@@ -141,7 +141,7 @@ static bool net_listen_addrs(lua_State *L, int port, endpoint_flags_t flags, int
if (ret == 0) return true; /* success */
if (is_unix) {
- kr_log_error(LOG_GRP_NETWORK, "bind to '%s' (UNIX): %s\n",
+ kr_log_error(NETWORK, "bind to '%s' (UNIX): %s\n",
str, kr_strerror(ret));
} else if (flags.xdp) {
const char *err_str = knot_strerror(ret);
@@ -157,18 +157,18 @@ static bool net_listen_addrs(lua_State *L, int port, endpoint_flags_t flags, int
/* Notable OK strerror: KNOT_EPERM Operation not permitted */
if (nic_queue == -1) {
- kr_log_error(LOG_GRP_NETWORK, "failed to initialize XDP for '%s@%d'"
+ kr_log_error(NETWORK, "failed to initialize XDP for '%s@%d'"
" (nic_queue = <auto>): %s\n",
str, port, err_str);
} else {
- kr_log_error(LOG_GRP_NETWORK, "failed to initialize XDP for '%s@%d'"
+ kr_log_error(NETWORK, "failed to initialize XDP for '%s@%d'"
" (nic_queue = %d): %s\n",
str, port, nic_queue, err_str);
}
} else {
const char *stype = flags.sock_type == SOCK_DGRAM ? "UDP" : "TCP";
- kr_log_error(LOG_GRP_NETWORK, "bind to '%s@%d' (%s): %s\n",
+ kr_log_error(NETWORK, "bind to '%s@%d' (%s): %s\n",
str, port, stype, kr_strerror(ret));
}
return false; /* failure */
@@ -775,7 +775,7 @@ static int net_tls_client(lua_State *L)
ok_ca = memcmp(newcfg->pins.at[i], oldcfg->pins.at[i], TLS_SHA256_RAW_LEN) == 0;
const bool ok_insecure = newcfg->insecure == oldcfg->insecure;
if (!(ok_h && ok_ca && ok_pins && ok_insecure)) {
- kr_log_warning(LOG_GRP_TLSCLIENT,
+ kr_log_warning(TLSCLIENT,
"warning: re-defining TLS authentication parameters for %s\n",
addr_str);
}