Skip to content

Commit

Permalink
Update logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-rogerson committed Dec 24, 2023
1 parent ad4d73e commit fc31388
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions src/feature/svg/transforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ export const strokeLineCapTransform: Transform = (doc, options) => {

tagNames.length > 0 &&
options.log.add(
`updated stroke-linecap to "${
options.config.strokeLinecap
}" on ${getCounts(tagNames)}`
`set stroke-linecap="${options.config.strokeLinecap}" on ${getCounts(
tagNames
)}`
);

return doc;
Expand All @@ -128,9 +128,9 @@ export const strokeLineJoinTransform: Transform = (doc, options) => {

tagNames.length > 0 &&
options.log.add(
`updated stroke-linejoin to "${
options.config.strokeLinejoin
}" on ${getCounts(tagNames)}`
`set stroke-linejoin="${options.config.strokeLinejoin}" on ${getCounts(
tagNames
)}`
);

return doc;
Expand Down Expand Up @@ -178,9 +178,7 @@ export const strokeWidthTransform: Transform = (doc, options) => {
}

options.log.add(
`updated stroke-width to β€œ${options.config.strokeWidth}” on ${getCounts(
tagNames
)}`
`set stroke-width=β€œ${options.config.strokeWidth}” on ${getCounts(tagNames)}`
);

return doc;
Expand Down Expand Up @@ -224,7 +222,7 @@ export const strokeColorTransform: Transform = (doc, options) => {

tagNames.length > 0 &&
options.log.add(
`updated stroke to β€œ${options.config.stroke}” on ${getCounts(tagNames)}`
`set stroke=β€œ${options.config.stroke}” on ${getCounts(tagNames)}`
);

run(() => {
Expand All @@ -235,7 +233,7 @@ export const strokeColorTransform: Transform = (doc, options) => {
if (value.length === 0) return;

svg.setAttribute("stroke", options.config.stroke);
options.log.add(`updated stroke to β€œ${options.config.stroke}” on svg`);
options.log.add(`set stroke=β€œ${options.config.stroke}” on svg`);
});

return doc;
Expand Down

0 comments on commit fc31388

Please sign in to comment.