From 7e80be87ac3f0ca704ce7c1b39547644b259c1e7 Mon Sep 17 00:00:00 2001 From: Christian Dupuis Date: Thu, 23 Aug 2018 12:08:06 +0200 Subject: [PATCH] Make log output easier to read --- src/util/spawned.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/util/spawned.ts b/src/util/spawned.ts index f24e84114..57a2a1bae 100644 --- a/src/util/spawned.ts +++ b/src/util/spawned.ts @@ -21,9 +21,7 @@ import { } from "child_process"; import * as spawn from "cross-spawn"; import * as path from "path"; - import { sprintf } from "sprintf-js"; - import * as strip_ansi from "strip-ansi"; import { logger } from "../internal/util/logger"; @@ -85,9 +83,9 @@ export async function spawnAndWatch(spawnCommand: SpawnCommand, if (spOpts.logCommand === false) { logger.debug(`${options.cwd || path.resolve(".")} > ${stringifySpawnCommand(spawnCommand)} (pid '${childProcess.pid}')`); } else { - log.write(`---\n`); + log.write(`/--\n`); log.write(`${options.cwd || path.resolve(".")} > ${stringifySpawnCommand(spawnCommand)} (pid '${childProcess.pid}')\n`); - log.write(`---\n`); + log.write(`\\--\n`); } return watchSpawned(childProcess, log, spOpts); }