File tree 1 file changed +8
-0
lines changed
v-next/hardhat/src/internal/cli/telemetry/sentry
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -120,8 +120,12 @@ export class Anonymizer {
120
120
}
121
121
122
122
public anonymizeErrorMessage ( errorMessage : string ) : string {
123
+ console . log ( `before anonymizeMnemonic: '${ errorMessage } '` ) ;
124
+
123
125
errorMessage = this . #anonymizeMnemonic( errorMessage ) ;
124
126
127
+ console . log ( `after anonymizeMnemonic: '${ errorMessage } '` ) ;
128
+
125
129
// the \\ before path.sep is necessary for this to work on windows
126
130
const pathRegex = new RegExp ( `\\S+\\${ path . sep } \\S+` , "g" ) ;
127
131
@@ -131,6 +135,10 @@ export class Anonymizer {
131
135
// hide hex strings of 20 chars or more
132
136
const hexRegex = / ( 0 x ) ? [ 0 - 9 A - F a - f ] { 20 , } / g;
133
137
138
+ console . log ( `pathRegex: ${ pathRegex } ` ) ;
139
+ console . log ( `pathRegex: ${ fileRegex } ` ) ;
140
+ console . log ( `pathRegex: ${ hexRegex } ` ) ;
141
+
134
142
return errorMessage
135
143
. replace ( pathRegex , ANONYMIZED_FILE )
136
144
. replace ( fileRegex , ANONYMIZED_FILE )
You can’t perform that action at this time.
0 commit comments