"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.startHttpServer = startHttpServer;

var _buildToolLoggers = require("../../buildToolLoggers");

function startHttpServer(app, options) {
  const {
    serverExtras
  } = options;
  const {
    httpPort,
    httpUrl
  } = serverExtras;
  app.listen(httpPort, err => {
    if (err) {
      throw err;
    }

    (0, _buildToolLoggers.messageLogger)(`Listening at ${httpUrl}`);
  });
  return app;
}