mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 13:27:38 +00:00
feat: clean up proxy logging with n/N in each lookup (#1839)
This commit is contained in:
+19
-5
@@ -241,11 +241,25 @@ function buildSetupString(
|
||||
|
||||
function buildProductString(link: Link, store: Store, color?: boolean): string {
|
||||
if (color) {
|
||||
return (
|
||||
chalk.cyan(`[${store.name}]`) +
|
||||
chalk.grey(` [${link.brand} (${link.series})] ${link.model}`)
|
||||
);
|
||||
if (store.currentProxyIndex !== undefined && store.proxyList) {
|
||||
const proxy = `${store.currentProxyIndex + 1}/${store.proxyList.length}`;
|
||||
return (
|
||||
chalk.gray(`[${proxy}]`) +
|
||||
chalk.cyan(` [${store.name}]`) +
|
||||
chalk.grey(` [${link.brand} (${link.series})] ${link.model}`)
|
||||
);
|
||||
} else {
|
||||
return (
|
||||
chalk.cyan(`[${store.name}]`) +
|
||||
chalk.grey(` [${link.brand} (${link.series})] ${link.model}`)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
return `[${store.name}] [${link.brand} (${link.series})] ${link.model}`;
|
||||
if (store.currentProxyIndex !== undefined && store.proxyList) {
|
||||
const proxy = `${store.currentProxyIndex + 1}/${store.proxyList.length}`;
|
||||
return `[${proxy}] [${store.name}] [${link.brand} (${link.series})] ${link.model}`;
|
||||
} else {
|
||||
return `[${store.name}] [${link.brand} (${link.series})] ${link.model}`;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user