]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Display some debug messages when -z is used to track the progress
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Wed, 4 Mar 2015 19:53:34 +0000 (20:53 +0100)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Wed, 4 Mar 2015 19:53:34 +0000 (20:53 +0100)
When processing a big log file, sarg would remain silent for some time even
with -z enabled. With those messages, the user understand what is
happening.

authfail.c
denied.c
download.c
siteuser.c
topsites.c
topuser.c

index f14a0b1fa090bd4fd5b3299b269fc722f48b5578..e3f62a6a7d229689abc28308b3785e49c3272938 100644 (file)
@@ -144,6 +144,8 @@ void authfail_report(void)
                if (debugz>=LogLevel_Process) debugaz(_("Authentication failures report not produced because it is empty\n"));
                return;
        }
+       if (debugz>=LogLevel_Process)
+               debuga(_("Creating authentication failures report...\n"));
 
        snprintf(authfail_sort,sizeof(authfail_sort),"%s/authfail.int_log",tmp);
        snprintf(report,sizeof(report),"%s/authfail.html",outdirname);
index 587fdb308ebdc3b5abcb213e6ab6386892dbb2db..4288315aa14cb3c79739991f00c6f90c7fa61c23 100644 (file)
--- a/denied.c
+++ b/denied.c
@@ -144,6 +144,8 @@ void gen_denied_report(void)
                if (debugz>=LogLevel_Process) debugaz(_("Denied report not produced because it is empty\n"));
                return;
        }
+       if (debugz>=LogLevel_Process)
+               debuga(_("Creating denied accesses report...\n"));
 
        if (snprintf(denied_sort,sizeof(denied_sort),"%s/denied.int_log",tmp)>=sizeof(denied_sort)) {
                debuga(_("Temporary directory path too long to sort the denied accesses\n"));
index 2b3b671472f2c250fa112c91149150a548ef0e1c..675f50aea54b9de059ef85bb936b5661b6df6a09 100644 (file)
@@ -192,6 +192,8 @@ void download_report(void)
                return;
        }
 
+       if (debugz>=LogLevel_Process)
+               debuga(_("Creating download report...\n"));
        ouser[0]='\0';
        ouser2[0]='\0';
 
index a939d36e406f7ab6e1b6d112ca290cde9b70fb20..b99bcb0e7745ebe7f98251f85f3ee0415aab8e2e 100644 (file)
@@ -53,6 +53,8 @@ void siteuser(void)
                return;
        }
 
+       if (debugz>=LogLevel_Process)
+               debuga(_("Creating report to list who visisted what site...\n"));
        nsitesusers = 0;
        sprintf(general,"%s/sarg-general",outdirname);
        sprintf(sites,"%s/sarg-sites",outdirname);
index 3777c7a716843899e9db0faaac67375e98c3de29..0e4f83ab181a722340e2196ccbcdb6d88b0b55e0 100644 (file)
@@ -72,6 +72,8 @@ void topsites(void)
                if (debugz>=LogLevel_Process) debugaz(_("Top sites report not produced because privacy option is on\n"));
                return;
        }
+       if (debugz>=LogLevel_Process)
+               debuga(_("Creating top sites report...\n"));
 
        sprintf(general,"%s/sarg-general",outdirname);
        sprintf(sites,"%s/sarg-sites",outdirname);
index 8266cf5108234f0c7ebfec895fca2dd33f4b1de8..7618248fd0bc0277b09e03404e147df3d0a529c6 100644 (file)
--- a/topuser.c
+++ b/topuser.c
@@ -84,6 +84,8 @@ void topuser(void)
        struct generalitemstruct item;
        struct userinfostruct *uinfo;
 
+       if (debugz>=LogLevel_Process)
+               debuga(_("Creating top users report...\n"));
        ntopuser = 0;
        snprintf(wger,sizeof(wger),"%s/sarg-general",outdirname);
        if((fp_in=fopen(wger,"r"))==NULL) {