]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Print a debug message when purging the temporary directory
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Fri, 6 Jan 2012 14:00:20 +0000 (14:00 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Fri, 6 Jan 2012 14:00:20 +0000 (14:00 +0000)
The temporary directory used by sarg is purged before the report is
generated and it can take some time if a previous directory was left
from a previous run.

A debug message is printed to tell the user about the delay that's
occuring.

log.c

diff --git a/log.c b/log.c
index 3939fb2cba2bf26c126145cf77be542eccd93133..96838c1179188f9536cbae0bb3f467460857ff87 100644 (file)
--- a/log.c
+++ b/log.c
@@ -644,6 +644,7 @@ int main(int argc,char *argv[])
        }
 
        if(access(tmp, R_OK) == 0) {
+               if (debug) debuga(_("Deleting directory %s\n"),tmp);
                unlinkdir(tmp,1);
        }
        my_mkdir(tmp);