Code

Automatically prefix all log messages with the plugin name (if available).
[sysdb.git] / src / core / data.c
index 6fcd2eb4b47a05d202ca8aa8aaada16b40c763ce..d176b891e8e7dd71476dbaebe6c6cb82b5952884 100644 (file)
@@ -1152,7 +1152,7 @@ sdb_data_parse(const char *str, int type, sdb_data_t *data)
                        return -1;
                if (regcomp(&tmp.data.re.regex, tmp.data.re.raw,
                                        REG_EXTENDED | REG_ICASE | REG_NOSUB)) {
-                       sdb_log(SDB_LOG_ERR, "core: Failed to compile regular "
+                       sdb_log(SDB_LOG_ERR, "Failed to compile regular "
                                        "expression '%s'", tmp.data.re.raw);
                        free(tmp.data.re.raw);
                        return -1;
@@ -1176,13 +1176,13 @@ sdb_data_parse(const char *str, int type, sdb_data_t *data)
                        || (type == SDB_TYPE_DATETIME)) {
                if (errno || (str == endptr)) {
                        char errbuf[1024];
-                       sdb_log(SDB_LOG_ERR, "core: Failed to parse string "
+                       sdb_log(SDB_LOG_ERR, "Failed to parse string "
                                        "'%s' as numeric value (type %i): %s", str, type,
                                        sdb_strerror(errno, errbuf, sizeof(errbuf)));
                        return -1;
                }
                else if (endptr && (*endptr != '\0'))
-                       sdb_log(SDB_LOG_WARNING, "core: Ignoring garbage after "
+                       sdb_log(SDB_LOG_WARNING, "Ignoring garbage after "
                                        "number while parsing numeric value (type %i): %s.",
                                        type, endptr);
        }