@budibase/backend-core 2.13.12 → 2.13.13

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/index.js CHANGED
@@ -6079,6 +6079,7 @@ init_init();
6079
6079
  init_src();
6080
6080
  init_context2();
6081
6081
  init_environment2();
6082
+ init_logging();
6082
6083
  async function getClient(type, opts) {
6083
6084
  if (type === "custom" /* CUSTOM */) {
6084
6085
  return newRedlock(opts);
@@ -6161,16 +6162,14 @@ async function doWithLock(opts, task) {
6161
6162
  const result = await task();
6162
6163
  return { executed: true, result };
6163
6164
  } catch (e) {
6164
- console.warn("lock error");
6165
+ logWarn(`lock type: ${opts.type} error`, e);
6165
6166
  if (e.name === "LockError") {
6166
6167
  if (opts.type === "try_once" /* TRY_ONCE */) {
6167
6168
  return { executed: false };
6168
6169
  } else {
6169
- console.error(e);
6170
6170
  throw e;
6171
6171
  }
6172
6172
  } else {
6173
- console.error(e);
6174
6173
  throw e;
6175
6174
  }
6176
6175
  } finally {