Skip to content

Commit

Permalink
Added logs for app/poa flow
Browse files Browse the repository at this point in the history
  • Loading branch information
ninadbstack committed Oct 14, 2024
1 parent ea7efc9 commit d6ffdc5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/core/src/percy.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,6 @@ export class Percy {
} else if (Array.isArray(options)) {
return yieldAll(options.map(o => this.yield.upload(o)));
}

// validate comparison uploads and warn about any errors

// we are having two similar attrs in options: tags & tag
Expand All @@ -402,6 +401,15 @@ export class Percy {
}
}

// set meta for logging
options.meta = {
snapshot: {
name: options.name,
testCase: options.testCase,
tag: options.tag?.name
}
};

// add client & environment info
this.client.addClientInfo(options.clientInfo);
this.client.addEnvironmentInfo(options.environmentInfo);
Expand Down

0 comments on commit d6ffdc5

Please sign in to comment.