mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-17 03:40:28 +08:00
Fix: ruleset output trace result
This commit is contained in:
parent
f9163db26c
commit
ee40f141f8
@ -416,10 +416,10 @@ export class FileOutput {
|
|||||||
}
|
}
|
||||||
|
|
||||||
write(): Promise<void> {
|
write(): Promise<void> {
|
||||||
return this.span.traceChildAsync('write all', async () => {
|
return this.span.traceChildAsync('write all', async (childSpan) => {
|
||||||
const promises: Array<Promise<void> | void> = [];
|
const promises: Array<Promise<void> | void> = [];
|
||||||
|
|
||||||
await this.writeToStrategies();
|
await childSpan.traceChildAsync('write to strategies', this.writeToStrategies.bind(this));
|
||||||
|
|
||||||
invariant(this.title, 'Missing title');
|
invariant(this.title, 'Missing title');
|
||||||
invariant(this.description, 'Missing description');
|
invariant(this.description, 'Missing description');
|
||||||
@ -429,7 +429,7 @@ export class FileOutput {
|
|||||||
if (strategy) {
|
if (strategy) {
|
||||||
const basename = (strategy.overwriteFilename || this.id) + '.' + strategy.fileExtension;
|
const basename = (strategy.overwriteFilename || this.id) + '.' + strategy.fileExtension;
|
||||||
promises.push(strategy.output(
|
promises.push(strategy.output(
|
||||||
this.span,
|
childSpan,
|
||||||
this.title,
|
this.title,
|
||||||
this.description,
|
this.description,
|
||||||
this.date,
|
this.date,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user