Skip to content

Commit

Permalink
Make log output easier to read
Browse files Browse the repository at this point in the history
  • Loading branch information
cdupuis committed Aug 23, 2018
1 parent 40e7869 commit 7e80be8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/util/spawned.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 7e80be8

Please sign in to comment.