File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ export class DuplicateCheckerPlugin implements IEventPlugin {
40
40
41
41
let error = context . event . data [ '@error' ] ;
42
42
let hashCode = getHashCode ( error ) ;
43
+
43
44
if ( ! hashCode ) {
44
45
return ;
45
46
}
@@ -51,16 +52,19 @@ export class DuplicateCheckerPlugin implements IEventPlugin {
51
52
if ( merged ) {
52
53
merged . incrementCount ( count ) ;
53
54
merged . updateDate ( context . event . date ) ;
55
+ context . log . info ( "Ignoring duplicate event with hash: " + hashCode ) ;
54
56
context . cancelled = true ;
55
57
return ;
56
58
}
57
59
58
60
if ( this . _processedHashcodes . some ( h => h . hash === hashCode && h . timestamp >= ( now - this . _interval ) ) ) {
61
+ context . log . info ( "Adding event with hash: " + hashCode ) ;
59
62
this . _mergedEvents . push ( new MergedEvent ( hashCode , context , count ) ) ;
60
63
context . cancelled = true ;
61
64
return ;
62
65
}
63
66
67
+ context . log . info ( "Enqueueing event with hash: " + hashCode + "to cache." ) ;
64
68
this . _processedHashcodes . push ( { hash : hashCode , timestamp : now } ) ;
65
69
66
70
// Only keep the last 50 recent errors.
You can’t perform that action at this time.
0 commit comments