@vizamodo/viza-dispatcher 1.5.21 → 1.5.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/dispatcher.js +4 -4
- package/package.json +1 -1
package/dist/core/dispatcher.js
CHANGED
|
@@ -128,7 +128,7 @@ export async function dispatcherDispatch(input, options, mode = "dispatch") {
|
|
|
128
128
|
throw new DispatchRejectedError(`Dispatch request rejected by gateway${detail}`, { cause: err });
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
console.log("[dispatcher] Refreshing bootstrap config and retrying once …");
|
|
131
|
+
console.log("\n[dispatcher] Refreshing bootstrap config and retrying once …");
|
|
132
132
|
let retryErr = null;
|
|
133
133
|
try {
|
|
134
134
|
const fresh = await loadGatewayBootstrapConfig(options.auth.targetEnv, { forceRefresh: true });
|
|
@@ -188,15 +188,15 @@ export async function dispatcherDispatch(input, options, mode = "dispatch") {
|
|
|
188
188
|
};
|
|
189
189
|
const classified = classifyAccepted(accepted);
|
|
190
190
|
if (classified.kind === "done") {
|
|
191
|
-
console.log(
|
|
191
|
+
console.log(`\n[${identity.login}] status: done (${classified.done.status})`);
|
|
192
192
|
}
|
|
193
193
|
else {
|
|
194
194
|
// distinguish new dispatch vs reuse
|
|
195
195
|
if (accepted.action === "reuse") {
|
|
196
|
-
console.log(
|
|
196
|
+
console.log(`\n[${identity.login}] ${chalk.gray(`status: reusing in-flight session`)} (${classified.sessionId}) …`);
|
|
197
197
|
}
|
|
198
198
|
else {
|
|
199
|
-
console.log(
|
|
199
|
+
console.log(`\n[${identity.login}] ${chalk.gray(`status: dispatched new session`)} (${classified.sessionId}) …`);
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
return {
|