@putkoff/abstract-logger 0.0.78 → 0.0.79

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/cjs/index.js CHANGED
@@ -15053,13 +15053,11 @@ function logit(messageOrOptions, logType = null, details = null, function_name =
15053
15053
  /* -------------------------------------------------- */
15054
15054
  /* 🔒 Single source of truth for logType */
15055
15055
  /* -------------------------------------------------- */
15056
- const finalLogType = logType ?? "info";
15057
- // 🔒 overwrite raw input so downstream never guesses
15056
+ // 🔒 Single source of truth
15057
+ const finalLogType = opts.logType ?? "info";
15058
15058
  opts.logType = finalLogType;
15059
- /* -------------------------------------------------- */
15060
- /* Blocking */
15061
- /* -------------------------------------------------- */
15062
- if (!shouldLog(opts, caller)) {
15059
+ // Phase 1 decision
15060
+ if (!shouldLog(opts, cheapCaller)) {
15063
15061
  return "";
15064
15062
  }
15065
15063
  /* -------------------------------------------------- */