From aa416a57d8b302fce242fcb5e73c97531536899f Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Thu, 10 Nov 2016 22:46:57 +0100 Subject: [PATCH] Use sdb_log() in place of sdb_plugin_log(). It's up to the error module to decide how to log. Inside the daemon, both are basically equivalent. --- src/core/plugin.c | 4 ++-- src/plugins/cname/dns.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/plugin.c b/src/core/plugin.c index 67f9dfe..e350494 100644 --- a/src/core/plugin.c +++ b/src/core/plugin.c @@ -1196,7 +1196,7 @@ sdb_plugin_get_ctx(void) c = ctx_get(); if (! c) { - sdb_plugin_log(SDB_LOG_ERR, "core: Invalid read access to plugin " + sdb_log(SDB_LOG_ERR, "core: Invalid read access to plugin " "context outside a plugin"); return plugin_default_ctx; } @@ -1210,7 +1210,7 @@ sdb_plugin_set_ctx(sdb_plugin_ctx_t ctx, sdb_plugin_ctx_t *old) c = ctx_get(); if (! c) { - sdb_plugin_log(SDB_LOG_ERR, "core: Invalid write access to plugin " + sdb_log(SDB_LOG_ERR, "core: Invalid write access to plugin " "context outside a plugin"); return -1; } diff --git a/src/plugins/cname/dns.c b/src/plugins/cname/dns.c index e54ce7c..0b17d96 100644 --- a/src/plugins/cname/dns.c +++ b/src/plugins/cname/dns.c @@ -68,7 +68,7 @@ sdb_dns_cname(const char *name, err = getaddrinfo(name, /* service = */ NULL, &hints, &ret); if (err) { /* XXX: what to do about EAI_AGAIN? */ - sdb_plugin_logf(SDB_LOG_ERR, "cname::dns: Failed to resolve '%s': %s", + sdb_log(SDB_LOG_ERR, "cname::dns: Failed to resolve '%s': %s", name, gai_strerror(err)); return NULL; } -- 2.30.2