mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Chore(trace): print trace for one-off task
This commit is contained in:
@@ -104,6 +104,9 @@ export function task(importMetaMain: boolean, importMetaPath: string) {
|
|||||||
const dummySpan = createSpan(taskName);
|
const dummySpan = createSpan(taskName);
|
||||||
if (importMetaMain) {
|
if (importMetaMain) {
|
||||||
fn(dummySpan).finally(() => {
|
fn(dummySpan).finally(() => {
|
||||||
|
dummySpan.stop();
|
||||||
|
printTraceResult(dummySpan.traceResult);
|
||||||
|
|
||||||
console.log(wtf.dump());
|
console.log(wtf.dump());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user