File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export class DuplicateCheckerPlugin implements IEventPlugin {
28
28
let hashCode = 0 ;
29
29
30
30
while ( error ) {
31
- if ( error . message && error . message . length ) {
31
+ if ( error . message && error . message . length ) {
32
32
hashCode += ( hashCode * 397 ) ^ Utils . getHashCode ( error . message ) ;
33
33
}
34
34
if ( error . stack_trace && error . stack_trace . length ) {
@@ -54,19 +54,19 @@ export class DuplicateCheckerPlugin implements IEventPlugin {
54
54
if ( merged ) {
55
55
merged . incrementCount ( count ) ;
56
56
merged . updateDate ( context . event . date ) ;
57
- context . log . info ( " Ignoring duplicate event with hash: " + hashCode ) ;
57
+ context . log . info ( ' Ignoring duplicate event with hash: ' + hashCode ) ;
58
58
context . cancelled = true ;
59
59
return ;
60
60
}
61
61
62
62
if ( this . _processedHashcodes . some ( h => h . hash === hashCode && h . timestamp >= ( now - this . _interval ) ) ) {
63
- context . log . info ( " Adding event with hash: " + hashCode ) ;
63
+ context . log . info ( ' Adding event with hash: ' + hashCode ) ;
64
64
this . _mergedEvents . push ( new MergedEvent ( hashCode , context , count ) ) ;
65
65
context . cancelled = true ;
66
66
return ;
67
67
}
68
68
69
- context . log . info ( " Enqueueing event with hash: " + hashCode + " to cache." ) ;
69
+ context . log . info ( ' Enqueueing event with hash: ' + hashCode + ' to cache.' ) ;
70
70
this . _processedHashcodes . push ( { hash : hashCode , timestamp : now } ) ;
71
71
72
72
// Only keep the last 50 recent errors.
You can’t perform that action at this time.
0 commit comments