summaryrefslogtreecommitdiffstats
path: root/libnetdata/eval/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnetdata/eval/eval.c')
-rw-r--r--libnetdata/eval/eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libnetdata/eval/eval.c b/libnetdata/eval/eval.c
index c7570bd2f..236be932b 100644
--- a/libnetdata/eval/eval.c
+++ b/libnetdata/eval/eval.c
@@ -1122,14 +1122,14 @@ EVAL_EXPRESSION *expression_parse(const char *string, const char **failed_at, in
if(!op) {
unsigned long pos = s - string + 1;
- error("failed to parse expression '%s': %s at character %lu (i.e.: '%s').", string, expression_strerror(err), pos, s);
+ netdata_log_error("failed to parse expression '%s': %s at character %lu (i.e.: '%s').", string, expression_strerror(err), pos, s);
return NULL;
}
BUFFER *out = buffer_create(1024, NULL);
print_parsed_as_node(out, op, &err);
if(err != EVAL_ERROR_OK) {
- error("failed to re-generate expression '%s' with reason: %s", string, expression_strerror(err));
+ netdata_log_error("failed to re-generate expression '%s' with reason: %s", string, expression_strerror(err));
eval_node_free(op);
buffer_free(out);
return NULL;