mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 17:20:35 +08:00
Chore(trace): print trace for one-off task
This commit is contained in:
parent
a36d61e73c
commit
7b3d422df6
@ -104,6 +104,9 @@ export function task(importMetaMain: boolean, importMetaPath: string) {
|
||||
const dummySpan = createSpan(taskName);
|
||||
if (importMetaMain) {
|
||||
fn(dummySpan).finally(() => {
|
||||
dummySpan.stop();
|
||||
printTraceResult(dummySpan.traceResult);
|
||||
|
||||
console.log(wtf.dump());
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user