Skip to content

Commit

Permalink
fix(logger): remove querystring in product
Browse files Browse the repository at this point in the history
  • Loading branch information
cxtom committed Mar 24, 2021
1 parent a13e0bd commit 426b3eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/logger/src/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default {
return o.req?.logid || uuid();
},
product: function (o) {
return o.req?.product || o.req?.url.split('/').filter(a => a && a !== o.app).join('_');
return o.req?.product || o.req?.url.split('?')[0].split('/').filter(a => a && a !== o.app).join('_');
},
module: function (o) {
return o.req?.module;
Expand Down

0 comments on commit 426b3eb

Please sign in to comment.