From 513a60d00ec8dce8176a592941923b41e1938853 Mon Sep 17 00:00:00 2001 From: Timothy Jones Date: Fri, 29 Jan 2021 14:56:21 +1100 Subject: [PATCH] fix(logger): Now pact-node and ruby use the same logLevel if specified --- src/service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/service.ts b/src/service.ts index 2d1608b8..dfd73682 100644 --- a/src/service.ts +++ b/src/service.ts @@ -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'); @@ -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') {