@budibase/server 2.6.19-alpha.30 → 2.6.19-alpha.31

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.
package/dist/query.js CHANGED
@@ -3143,6 +3143,7 @@ var init_logger = __esm({
3143
3143
  }
3144
3144
  const mergingObject = {
3145
3145
  err: error,
3146
+ pid: process.pid,
3146
3147
  ...contextObject
3147
3148
  };
3148
3149
  if (objects.length) {
@@ -5571,6 +5572,7 @@ var environment = {
5571
5572
  ENABLE_ANALYTICS: process.env.ENABLE_ANALYTICS,
5572
5573
  SELF_HOSTED: process.env.SELF_HOSTED,
5573
5574
  HTTP_MB_LIMIT: process.env.HTTP_MB_LIMIT,
5575
+ FORKED_PROCESS_NAME: process.env.FORKED_PROCESS_NAME || "main",
5574
5576
  // old
5575
5577
  CLIENT_ID: process.env.CLIENT_ID,
5576
5578
  _set(key, value) {
@@ -12928,8 +12930,10 @@ function makeVariableKey(queryId, variable) {
12928
12930
  }
12929
12931
  function threadSetup() {
12930
12932
  if (environment_default.isTest() || environment_default.DISABLE_THREADING || !environment_default.isInThread()) {
12933
+ console.debug(`[${environment_default.FORKED_PROCESS_NAME}] thread setup skipped`);
12931
12934
  return;
12932
12935
  }
12936
+ console.debug(`[${environment_default.FORKED_PROCESS_NAME}] thread setup running`);
12933
12937
  init8();
12934
12938
  }
12935
12939
  async function checkCacheForDynamicVariable(queryId, variable) {