]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - download.c
First use of a debug level
[thirdparty/sarg.git] / download.c
index e8f11bf52636966272fe4cc5558eae377f340a95..2b3b671472f2c250fa112c91149150a548ef0e1c 100644 (file)
@@ -61,11 +61,11 @@ Open a file to store the denied accesses.
 void download_open(void)
 {
        if ((ReportType & REPORT_TYPE_DOWNLOADS) == 0) {
-               if (debugz) debugaz(_("Download report not produced as it is not requested\n"));
+               if (debugz>=LogLevel_Process) debugaz(_("Download report not produced as it is not requested\n"));
                return;
        }
        if (Privacy) {
-               if (debugz) debugaz(_("Download report not produced because privacy option is active\n"));
+               if (debugz>=LogLevel_Process) debugaz(_("Download report not produced because privacy option is active\n"));
                return;
        }
 
@@ -188,7 +188,7 @@ void download_report(void)
                if (!KeepTempLog && download_unsort[0]!='\0' && unlink(download_unsort))
                        debuga(_("Cannot delete \"%s\": %s\n"),download_unsort,strerror(errno));
                download_unsort[0]='\0';
-               if (debugz) debugaz(_("No downloaded files to report\n"));
+               if (debugz>=LogLevel_Process) debugaz(_("No downloaded files to report\n"));
                return;
        }