Skip to content

Commit 4d298c0

Browse files
committed
Log some more information to the incidence count.
1 parent ecfaca8 commit 4d298c0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/log.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,11 @@ function($access) {
127127
// First, increment our hitrate log for this entry.
128128
if ( empty($log->incidence->{$entry['hash']}) ) {
129129
$log->incidence->{$entry['hash']} = (object) array(
130-
'message' => $entry['message'],
131-
'count' => 1
130+
'first_logged' => $entry['time'],
131+
'message' => $entry['message'],
132+
'type' => $entry['type'],
133+
'format' => $entry['format'],
134+
'count' => 1
132135
);
133136
} else {
134137
$log->incidence->{$entry['hash']}->count++;

0 commit comments

Comments
 (0)