Skip to content

Commit 20855e1

Browse files
tmp commit for debugging CI error
1 parent e3d0564 commit 20855e1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

v-next/hardhat/src/internal/cli/telemetry/sentry/anonymizer.ts

+8
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,12 @@ export class Anonymizer {
120120
}
121121

122122
public anonymizeErrorMessage(errorMessage: string): string {
123+
console.log(`before anonymizeMnemonic: '${errorMessage}'`);
124+
123125
errorMessage = this.#anonymizeMnemonic(errorMessage);
124126

127+
console.log(`after anonymizeMnemonic: '${errorMessage}'`);
128+
125129
// the \\ before path.sep is necessary for this to work on windows
126130
const pathRegex = new RegExp(`\\S+\\${path.sep}\\S+`, "g");
127131

@@ -131,6 +135,10 @@ export class Anonymizer {
131135
// hide hex strings of 20 chars or more
132136
const hexRegex = /(0x)?[0-9A-Fa-f]{20,}/g;
133137

138+
console.log(`pathRegex: ${pathRegex}`);
139+
console.log(`pathRegex: ${fileRegex}`);
140+
console.log(`pathRegex: ${hexRegex}`);
141+
134142
return errorMessage
135143
.replace(pathRegex, ANONYMIZED_FILE)
136144
.replace(fileRegex, ANONYMIZED_FILE)

0 commit comments

Comments
 (0)