@514labs/moose-lib 0.6.267-ci-2-gbf0ead61 → 0.6.267-ci-2-g72faeb73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -723,7 +723,13 @@ var httpLogger = (req, res, startMs) => {
723
723
  };
724
724
  var modulesCache = /* @__PURE__ */ new Map();
725
725
  var apiHandler = async (publicKey, clickhouseClient, temporalClient, apisDir, enforceAuth, isDmv2, jwtConfig) => {
726
+ console.log(
727
+ `[DEBUG] Worker ${import_node_cluster2.default.worker?.id} apiHandler: about to call getApis (isDmv2=${isDmv2})`
728
+ );
726
729
  const apis = isDmv2 ? await getApis2() : /* @__PURE__ */ new Map();
730
+ console.log(
731
+ `[DEBUG] Worker ${import_node_cluster2.default.worker?.id} apiHandler: getApis completed, returning handler`
732
+ );
727
733
  return async (req, res) => {
728
734
  const start = Date.now();
729
735
  try {
@@ -868,6 +874,9 @@ var apiHandler = async (publicKey, clickhouseClient, temporalClient, apisDir, en
868
874
  };
869
875
  };
870
876
  var createMainRouter = async (publicKey, clickhouseClient, temporalClient, apisDir, enforceAuth, isDmv2, jwtConfig) => {
877
+ console.log(
878
+ `[DEBUG] Worker ${import_node_cluster2.default.worker?.id} createMainRouter: about to call apiHandler`
879
+ );
871
880
  const apiRequestHandler = await apiHandler(
872
881
  publicKey,
873
882
  clickhouseClient,
@@ -877,7 +886,16 @@ var createMainRouter = async (publicKey, clickhouseClient, temporalClient, apisD
877
886
  isDmv2,
878
887
  jwtConfig
879
888
  );
889
+ console.log(
890
+ `[DEBUG] Worker ${import_node_cluster2.default.worker?.id} createMainRouter: apiHandler completed`
891
+ );
892
+ console.log(
893
+ `[DEBUG] Worker ${import_node_cluster2.default.worker?.id} createMainRouter: about to call getWebApps (isDmv2=${isDmv2})`
894
+ );
880
895
  const webApps = isDmv2 ? await getWebApps2() : /* @__PURE__ */ new Map();
896
+ console.log(
897
+ `[DEBUG] Worker ${import_node_cluster2.default.worker?.id} createMainRouter: getWebApps completed, returning router`
898
+ );
881
899
  const sortedWebApps = Array.from(webApps.values()).sort((a, b) => {
882
900
  const pathA = a.config.mountPath || "/";
883
901
  const pathB = b.config.mountPath || "/";