mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-05-03 17:43:07 +00:00
Fix output of seperation newline during livepush
Change-type: patch Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
parent
5e46815ac7
commit
c3e5147a19
@ -218,6 +218,8 @@ export async function deployToDevice(opts: DeviceDeployOptions): Promise<void> {
|
|||||||
// so we can either just display the logs, or start a livepush session
|
// so we can either just display the logs, or start a livepush session
|
||||||
// (whilst also display logs)
|
// (whilst also display logs)
|
||||||
if (!opts.nolive) {
|
if (!opts.nolive) {
|
||||||
|
// Print a newline to clear seperate build time and runtime
|
||||||
|
console.log();
|
||||||
const livepush = new LivepushManager({
|
const livepush = new LivepushManager({
|
||||||
api,
|
api,
|
||||||
buildContext: opts.source,
|
buildContext: opts.source,
|
||||||
@ -233,7 +235,6 @@ export async function deployToDevice(opts: DeviceDeployOptions): Promise<void> {
|
|||||||
const promises: Array<Bluebird<void> | Promise<void>> = [livepush.init()];
|
const promises: Array<Bluebird<void> | Promise<void>> = [livepush.init()];
|
||||||
// Only show logs if we're not detaching
|
// Only show logs if we're not detaching
|
||||||
if (!opts.detached) {
|
if (!opts.detached) {
|
||||||
console.log();
|
|
||||||
const logStream = await api.getLogStream();
|
const logStream = await api.getLogStream();
|
||||||
globalLogger.logInfo('Streaming device logs...');
|
globalLogger.logInfo('Streaming device logs...');
|
||||||
promises.push(
|
promises.push(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user