From: Sebastian Harl Date: Thu, 10 Nov 2016 21:46:57 +0000 (+0100) Subject: Use sdb_log() in place of sdb_plugin_log(). X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=aa416a57d8b302fce242fcb5e73c97531536899f;p=sysdb.git 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. --- 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; }