mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 09:10: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);
|
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());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user