]> git.itanic.dy.fi Git - rrdd/commitdiff
rrdtool_update_data: Print out the input data
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sat, 29 Sep 2012 17:09:56 +0000 (20:09 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sat, 29 Sep 2012 17:09:56 +0000 (20:09 +0300)
It appears that it is quite often useful to see what is the actual
data that is being put into the rrd database. Therefore, print out the
data always.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
rrdtool.c

index b69b2fbeeee12733db2697c782730451aca85295..6c740f0f17d9a2002955470748842369733b7516 100644 (file)
--- a/rrdtool.c
+++ b/rrdtool.c
@@ -220,6 +220,8 @@ int rrdtool_update_data(struct rrd_database *rrd)
                rrd->parse(data + l, rrd->parser_data);
                data[RRD_DATA_MAX_LEN + 2] = '\0';
 
+               pr_info("Data: %s\n", data);
+
                sanitize_rrd_update_data(data + l);
                pid = run(cmd, cmdline);
                harvest_zombies(pid);