message: disable log assertions when the user is customizing logging
diff: @@ -33,14 +33,6 @@ if (!process.env['DEBUG']) {
  throw new Error("Unexpected log message during tests: " + logLine);
  }
  };
  -}
  -
  -if (!process.env['ELASTICSEARCH_PREFIX']) {
  - // Avoid stomping on any existing content in elasticsearch by
  - // namespacing the test indices differently.
  - process.env['ELASTICSEARCH_PREFIX'] = 'test';
  -}
  -
  let expected = new Map();
  global.expectLogMessage = async function(pattern, fn) {
  @@ -52,3 +44,14 @@ global.expectLogMessage = async function(pattern, fn) {
  throw new Error(`Expected a log mesage to match ${pattern} but none did`);
  }
  };
  +} else {
  + global.expectLogMessage = async function(pattern, fn) {
  + await fn();
  + };
  +}
  +
  +if (!process.env['ELASTICSEARCH_PREFIX']) {
  + // Avoid stomping on any existing content in elasticsearch by
  + // namespacing the test indices differently.
  + process.env['ELASTICSEARCH_PREFIX'] = 'test';
  +}
  