darold / squidanalyzer

Squid Analyzer parses Squid proxy access log and reports general statistics about hits, bytes, users, networks, top URLs, and top second level domains. Statistic reports are oriented toward user and bandwidth control.
http://squidanalyzer.darold.net/
126 stars 36 forks source link

Debug #83

Closed juanjosepablos closed 9 years ago

juanjosepablos commented 9 years ago

I am using version 6.2 of squidanalyzer. on /etc/squidanalyzer/squidanalyzer.conf have "QuietMode 1" but I get this output: Compute and dump year statistics for 2015 DEBUG: the log statistics gathering took:46 wallclock secs (11.32 usr + 0.83 sys = 12.15 CPU) DEBUG: generating HTML output took:46 wallclock secs (32.97 usr + 2.53 sys = 35.50 CPU) DEBUG: total execution time:92 wallclock secs (44.29 usr + 3.36 sys = 47.65 CPU)

I think that DEBUG INFO shut not show up if QuietMode is enable

darold commented 9 years ago

Thanks, last commit 1718b13 might fix this issue.

Best regards,

juanjosepablos commented 9 years ago

Can I just replace the file to test? I try it and it fails root@conserje:/usr/local/bin# /usr/local/bin/squid-analyzer Global symbol "$degug" requires explicit package name at /usr/local/bin/squid-analyzer line 160. Execution of /usr/local/bin/squid-analyzer aborted due to compilation errors.

juanjosepablos commented 9 years ago

On line 160: "$degug" -> "$debug"

juanjosepablos commented 9 years ago

Your fix works here! :-) but still some noise: root@conserje:~# /usr/local/bin/squid-analyzer Compute and dump year statistics for 2015

juanjosepablos commented 9 years ago

Maybe the fix is around line 748 https://github.com/darold/squidanalyzer/blob/master/SquidAnalyzer.pm#L748

darold commented 9 years ago

Damn, sorry for the typo, it is fixed now.

juanjosepablos commented 9 years ago

Brilliant! Nice done!