From 6b380a798ef1ec7a0e36bc55176abd8102b5e77e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Marchal?= Date: Fri, 6 Jan 2012 14:00:20 +0000 Subject: [PATCH] Print a debug message when purging the temporary directory 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/log.c b/log.c index 3939fb2..96838c1 100644 --- 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); -- 2.47.2