Skip to content

Commit

Permalink
fix(logger): Now pact-node and ruby use the same logLevel if specified
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyJones committed Jan 29, 2021
1 parent 6cded49 commit 513a60d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import fs = require('fs');
import events = require('events');
import http = require('request');
import q = require('q');
import logger /*, { setLogLevel }*/ from './logger';
import logger, { setLogLevel } from './logger';
import spawn, { CliVerbOptions } from './spawn';
import { ChildProcess } from 'child_process';
import mkdirp = require('mkdirp');
Expand Down Expand Up @@ -52,7 +52,7 @@ export abstract class AbstractService extends events.EventEmitter {

// Set logger first
if (options.logLevel) {
// setLogLevel(options.logLevel);
setLogLevel(options.logLevel);
// Pact-node's logger supports fatal and trace,
// but the ruby binary doesn't. So we map those.
if ((options.logLevel as string) === 'fatal') {
Expand Down

0 comments on commit 513a60d

Please sign in to comment.