Skip to content

Commit 5b98124

Browse files
committed
disable progress bar while updating log
1 parent 526203f commit 5b98124

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/api/BundleDeploy/BundleDeployer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ export class BundleDeployer {
263263
this.jobId = statusWords[2];
264264
status.statusMessage += " (Processing DFHDPLOY " + action + " action)";
265265

266+
this.params.response.progress.endBar();
266267
// log the jobid for posterity
267268
if (this.params.arguments.verbose) {
268269
this.params.response.console.log(status.statusMessage + "\n");
@@ -271,6 +272,7 @@ export class BundleDeployer {
271272
const logger = Logger.getAppLogger();
272273
logger.debug(status.statusMessage);
273274
}
275+
this.params.response.progress.startBar({task: status});
274276
}
275277
}
276278
}

src/api/BundlePush/BundlePusher.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,10 @@ export class BundlePusher {
251251
private sshOutput(data: string) {
252252
// If verbose output is requested then log SSH output directly to the console
253253
if (this.params.arguments.verbose) {
254-
this.params.response.console.log(data);
254+
this.params.response.progress.endBar();
255+
this.params.response.console.log(Buffer.from(data));
256+
this.params.response.progress.startBar({task: this.progressBar});
255257
}
256-
257258
this.sshOutputText += data;
258259
}
259260

0 commit comments

Comments
 (0)