summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 233d70f)
raw | patch | inline | side by side (parent: 233d70f)
author | Sebastian Harl <sh@tokkee.org> | |
Thu, 10 Nov 2016 21:46:57 +0000 (22:46 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Thu, 10 Nov 2016 21:46:57 +0000 (22:46 +0100) |
It's up to the error module to decide how to log. Inside the daemon, both are
basically equivalent.
basically equivalent.
src/core/plugin.c | patch | blob | history | |
src/plugins/cname/dns.c | patch | blob | history |
diff --git a/src/core/plugin.c b/src/core/plugin.c
index 67f9dfea05259610299d5838623b863f820fc87f..e350494979f67c6c69f5183eaa94d02b733b997f 100644 (file)
--- a/src/core/plugin.c
+++ b/src/core/plugin.c
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;
}
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;
}
index e54ce7cd739de3face3c94ef2023a412146142e4..0b17d963af691519faa260d628004fc08e41b857 100644 (file)
--- a/src/plugins/cname/dns.c
+++ b/src/plugins/cname/dns.c
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;
}