Navigation Menu

Skip to content

Commit

Permalink
added clampe stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon 'CowboyNeal' Pater committed Nov 19, 2004
1 parent 6b4a372 commit 29161e7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Slash/Apache/Log/Log.pm
Expand Up @@ -8,6 +8,7 @@ package Slash::Apache::Log;
use strict;
use Slash::Utility;
use Apache::Constants qw(:common);
use File::Spec::Functions; # for clampe_stats, remove when done
use vars qw($VERSION);

($VERSION) = ' $Revision$ ' =~ /\$Revision:\s+([^\s]+)/;
Expand Down Expand Up @@ -144,6 +145,13 @@ sub UserLog {
}
$slashdb->setUser($user->{uid}, $user_update) if $user_update && %$user_update;

# stats for clampe
if ($constants->{clampe_stats} && $user->{uid} > 827000 && $user->{uid} < 832000) {
my $fname = catfile('clampe', $user->{uid});
my $comlog = "URL: $ENV{REQUEST_URI} IPID: $user->{ipid} UID: $user->{uid} Dispmode: $user->{mode} Thresh: $user->{threshold} Karma: $user->{karma}";
doClampeLog($fname, [$comlog]);
}

return OK;
}

Expand Down

0 comments on commit 29161e7

Please sign in to comment.