]> git.itanic.dy.fi Git - rrdd/commitdiff
rrdtool: Print out the image that is being drawn
authorTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 13 Mar 2011 09:20:53 +0000 (11:20 +0200)
committerTimo Kokkonen <kaapeli@itanic.dy.fi>
Sun, 13 Mar 2011 09:33:00 +0000 (11:33 +0200)
This makes debugging easier in case some of the images get drawn
correctly and some don't.

Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
rrdtool.c

index e560041917b8253632c3695fbc947f0d66f1568c..cb6022cb8ba820b9b10492caaa0e9f8d8de76d65 100644 (file)
--- a/rrdtool.c
+++ b/rrdtool.c
@@ -8,6 +8,7 @@
 #include "rrdtool.h"
 #include "process.h"
 #include "parser.h"
+#include "debug.h"
 
 #define MAX_ARGS       512
 #define ARGSTR_LEN     32768
@@ -38,6 +39,8 @@ int rrdtool_draw_image(struct rrd_image *image)
        char tmp[256];
        time_t t = time(0);
 
+       pr_info("Drawing image %s\n", image->image_filename);
+
        strftime(tmp, 256, "%d.%m.%Y %T (%Z) ", localtime(&t));
        for (i = 0, j = 0; j < 256;) {
                if (tmp[i] == ':') {