OSDN Git Service
(root)
/
newslash
/
newslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79f5d93
)
Plugin::Stats: fix debug log
author
hylom
<hylom@users.sourceforge.jp>
Fri, 8 Mar 2019 09:14:02 +0000
(18:14 +0900)
committer
hylom
<hylom@users.sourceforge.jp>
Fri, 8 Mar 2019 09:14:02 +0000
(18:14 +0900)
src/newslash_web/lib/Newslash/Plugin/Stats.pm
patch
|
blob
|
history
diff --git
a/src/newslash_web/lib/Newslash/Plugin/Stats.pm
b/src/newslash_web/lib/Newslash/Plugin/Stats.pm
index
cfaa5be
..
ac2ba91
100644
(file)
--- a/
src/newslash_web/lib/Newslash/Plugin/Stats.pm
+++ b/
src/newslash_web/lib/Newslash/Plugin/Stats.pm
@@
-77,10
+77,9
@@
sub aggregate_story_pageview_counters {
for my $stoid (@$stoids) {
next if $stoid !~ m/^\d+$/;
my $count = $kvs->hget($key, $stoid, scalar => 1);
-
warn "$key - $stoid - $count\n"
;
+
$self->{app}->log->debug("Stats::aggregate_story_pageview_counters: ${key}.[$stoid] - $count")
;
if ($count !~ m/^\d+$/) {
- $self->{app}->log->error("Stats::aggregate_story_pageview_counters: invalid count value '$count' for $stoid");
$kvs->hdel($key, $stoid);
next;
}