Skip to content

Commit 3bbbc1e

Browse files
committed
Improve logging
1 parent 1de1585 commit 3bbbc1e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

β€Žsrc/index.jsβ€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ async function redirectionTest({ options, total }) {
148148
);
149149

150150
if (typeof out !== 'string') {
151-
const msg = `πŸ” ${chalk.white(from)} β†’ ${chalk.magenta(
151+
const msg = `πŸ” ${chalk.white(from)} \n β†’ ${chalk.magenta(
152152
to
153-
)} β†’ ${chalk.magentaBright(out.out)} (potential infinite loop)`;
153+
)} \n β†’ ${chalk.magentaBright(out.out)} (potential infinite loop)`;
154154

155155
if (!OPTIONS.verbose) {
156156
printError(count + ' ' + msg);
@@ -161,9 +161,9 @@ async function redirectionTest({ options, total }) {
161161
await delayingFn(OPTIONS.delay);
162162
reject({ msg, from, to, out });
163163
} else if (out !== to) {
164-
const msg = `🚫 ${chalk.white(from)} β†’ ${chalk.red.strikethrough(
164+
const msg = `🚫 ${chalk.white(from)} \n β†’ ${chalk.red.strikethrough(
165165
to
166-
)} β†’ ${chalk.magentaBright(out)}`;
166+
)} \n β†’ ${chalk.magentaBright(out)}`;
167167
const diff = diffStringsUnified(to, out, DIFF_OPTIONS);
168168

169169
if (!OPTIONS.verbose) {
@@ -175,7 +175,7 @@ async function redirectionTest({ options, total }) {
175175
await delayingFn(OPTIONS.delay);
176176
reject({ msg, from, to, out, diff });
177177
} else {
178-
const msg = `βœ… ${chalk.white(from)} ${chalk.black('β†’')} ${chalk.blue(
178+
const msg = `βœ… ${chalk.white(from)} \n ${chalk.black('β†’')} ${chalk.blue(
179179
to
180180
)}`;
181181

0 commit comments

Comments
Β (0)