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>
#include "rrdtool.h"
#include "process.h"
#include "parser.h"
+#include "debug.h"
#define MAX_ARGS 512
#define ARGSTR_LEN 32768
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] == ':') {