Skip to content

Commit 77ab97d

Browse files
danilsomsikovDevtools-frontend LUCI CQ
authored andcommitted
Temporarily add logging to loadLegacyModule to investigate test timeouts on bots
Bug: 345556266 Change-Id: I8b1f95389bfb22d388747f6251a7959b44d1e294 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6375263 Auto-Submit: Danil Somsikov <[email protected]> Commit-Queue: Philip Pfaffe <[email protected]> Reviewed-by: Philip Pfaffe <[email protected]>
1 parent 969d667 commit 77ab97d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

front_end/core/root/Runtime.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,16 @@ export class Runtime {
104104
return condition ? condition(hostConfig) : true;
105105
}
106106

107-
loadLegacyModule(modulePath: string): Promise<void> {
107+
loadLegacyModule(modulePath: string): Promise<unknown> {
108+
// eslint-disable-next-line no-console
109+
console.log('Loading legacy module: ' + modulePath);
108110
const importPath =
109111
`../../${modulePath}`; // Extracted as a variable so esbuild doesn't attempt to bundle all the things.
110-
return import(importPath);
112+
return import(importPath).then(m => {
113+
// eslint-disable-next-line no-console
114+
console.log('Loaded legacy module: ' + modulePath);
115+
return m;
116+
});
111117
}
112118
}
113119

0 commit comments

Comments
 (0)