Skip to content

Commit

Permalink
fix(logging): Only log entire environment when log level is trace, no…
Browse files Browse the repository at this point in the history
…t debug
  • Loading branch information
TimothyJones committed Jan 29, 2021
1 parent f4994b2 commit c3b9f5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/spawn/spawn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ export class Spawn {
logger.debug(
`Starting pact binary '${command}', with arguments [${spawnArgs.join(
' ',
)}], and environment: ${JSON.stringify(opts)}`,
)}]`,
);
logger.trace(`Environment: ${JSON.stringify(opts)}`);
const instance = spawn(command, spawnArgs, opts);

instance.stdout.setEncoding('utf8');
Expand Down

0 comments on commit c3b9f5f

Please sign in to comment.