Skip to content

Commit

Permalink
fix: disabled HTTP tracer as it causes the node process to hang
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Dec 23, 2022
1 parent aae17ae commit 7de96ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/httpPact/index.ts
Expand Up @@ -19,7 +19,6 @@ import logger, { setLogLevel } from '../common/logger';
import { LogLevel, PactOptions, PactOptionsComplete } from '../dsl/options';
import VerificationError from '../errors/verificationError';
import ConfigurationError from '../errors/configurationError';
import { traceHttpInteractions } from './tracing';
import { SpecificationVersion } from '../v3';
import { version as pactPackageVersion } from '../../package.json';
import { generateMockServerError } from '../v3/display';
Expand Down Expand Up @@ -101,9 +100,10 @@ export class Pact {
setLogLevel(this.opts.logLevel as LogLevel);
serviceFactory.logLevel(this.opts.logLevel);

if (this.opts.logLevel === 'trace') {
traceHttpInteractions();
}
// TODO: this now hangs the process
// if (this.opts.logLevel === 'trace') {
// traceHttpInteractions();
// }

this.reset();
}
Expand Down

0 comments on commit 7de96ca

Please sign in to comment.