@cloudnux/local-cloud-provider 0.10.0 → 0.12.0

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.
@@ -867,12 +867,14 @@ var errorToString = (error) => {
867
867
 
868
868
  // ../../utils/src/logging/index.ts
869
869
  var currentLogLevel = logLevels[env("LOG_LEVEL")?.toLowerCase()] ?? logLevels.info;
870
+ var module = "default";
871
+ var requestId = "";
870
872
  var logger = {
871
873
  fatal: (message, meta) => {
872
874
  if (currentLogLevel >= logLevels.fatal) {
873
875
  console.error(
874
876
  `[${(/* @__PURE__ */ new Date()).toTimeString()}]`,
875
- `${chalk.bgRed.white(" fatal ")}${EOL}`,
877
+ `${chalk.bgRed.white(" fatal ")} - ${module || "unknown module"} - ${requestId || "no request ID"} - ${EOL}`,
876
878
  errorToString(message),
877
879
  meta ? `${EOL}${JSON.stringify(meta, null, 2)}` : ""
878
880
  );
@@ -882,7 +884,7 @@ var logger = {
882
884
  if (currentLogLevel >= logLevels.error) {
883
885
  console.error(
884
886
  `[${(/* @__PURE__ */ new Date()).toTimeString()}]`,
885
- `${chalk.bgRed.white(" error ")}${EOL}`,
887
+ `${chalk.bgRed.white(" error ")} - ${module || "unknown module"} - ${requestId || "no request ID"} - ${EOL}`,
886
888
  errorToString(message),
887
889
  meta ? `${EOL}${JSON.stringify(meta, null, 2)}` : ""
888
890
  );
@@ -892,7 +894,7 @@ var logger = {
892
894
  if (currentLogLevel >= logLevels.warn) {
893
895
  console.warn(
894
896
  `[${(/* @__PURE__ */ new Date()).toTimeString()}]`,
895
- `${chalk.bgYellow.black(" warn ")}${EOL}`,
897
+ `${chalk.bgYellow.black(" warn ")} - ${module || "unknown module"} - ${requestId || "no request ID"} - ${EOL}`,
896
898
  errorToString(message),
897
899
  meta ? `${EOL}${JSON.stringify(meta, null, 2)}` : ""
898
900
  );
@@ -902,7 +904,7 @@ var logger = {
902
904
  if (currentLogLevel >= logLevels.info) {
903
905
  console.info(
904
906
  `[${(/* @__PURE__ */ new Date()).toTimeString()}]`,
905
- `${chalk.bgBlue.white(" info ")}${EOL}`,
907
+ `${chalk.bgBlue.white(" info ")} - ${module || "unknown module"} - ${requestId || "no request ID"} - ${EOL}`,
906
908
  message,
907
909
  meta ? `${EOL}${JSON.stringify(meta, null, 2)}` : ""
908
910
  );
@@ -912,7 +914,7 @@ var logger = {
912
914
  if (currentLogLevel >= logLevels.debug) {
913
915
  console.debug(
914
916
  `[${(/* @__PURE__ */ new Date()).toTimeString()}]`,
915
- `${chalk.bgWhite.black(" debug ")}${EOL}`,
917
+ `${chalk.bgWhite.black(" debug ")} - ${module || "unknown module"} - ${requestId || "no request ID"} - ${EOL}`,
916
918
  message,
917
919
  meta ? `${EOL}${JSON.stringify(meta, null, 2)}` : ""
918
920
  );
@@ -1828,8 +1830,8 @@ var createSchedulerManager = ({
1828
1830
  return false;
1829
1831
  }
1830
1832
  };
1831
- const listJobs = (module) => {
1832
- return Object.values(state.schedulers).filter((s) => !module || s.job.module === module).map((s) => s.job.name).sort();
1833
+ const listJobs = (module2) => {
1834
+ return Object.values(state.schedulers).filter((s) => !module2 || s.job.module === module2).map((s) => s.job.name).sort();
1833
1835
  };
1834
1836
  const getJobStats = (jobName) => {
1835
1837
  try {