@experts_hub/shared 1.0.614 → 1.0.615

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
@@ -11450,9 +11450,7 @@ var DiscordAlertService = class {
11450
11450
  * Simple logging (doesn't use logger to avoid circular dependencies)
11451
11451
  */
11452
11452
  log(message) {
11453
- if (this.config.environment === "development") {
11454
- console.log(`[DiscordAlertService] ${message}`);
11455
- }
11453
+ console.log(`[DiscordAlertService] ${message}`);
11456
11454
  }
11457
11455
  /**
11458
11456
  * Error logging
@@ -11557,14 +11555,20 @@ var DiscordTransport = class extends import_winston_transport.default {
11557
11555
  setImmediate(() => {
11558
11556
  this.emit("logged", info);
11559
11557
  });
11558
+ console.log(`[DiscordTransport] Received log - Level: ${info.level}, Enabled: ${this.transportOptions.enabled}, ShouldLog: ${this.shouldLog(info.level)}`);
11560
11559
  if (!this.transportOptions.enabled || !this.shouldLog(info.level)) {
11560
+ console.log(`[DiscordTransport] Skipping - Enabled: ${this.transportOptions.enabled}, ShouldLog: ${this.shouldLog(info.level)}`);
11561
11561
  callback();
11562
11562
  return;
11563
11563
  }
11564
- this.sendLogToDiscord(info).catch((error) => {
11564
+ console.log(`[DiscordTransport] Sending to Discord...`);
11565
+ this.sendLogToDiscord(info).then(() => {
11566
+ console.log(`[DiscordTransport] Successfully sent to Discord`);
11567
+ }).catch((error) => {
11565
11568
  console.error(
11566
11569
  `[DiscordTransport] Failed to send log to Discord:`,
11567
- error instanceof Error ? error.message : String(error)
11570
+ error instanceof Error ? error.message : String(error),
11571
+ error instanceof Error ? error.stack : ""
11568
11572
  );
11569
11573
  }).finally(() => {
11570
11574
  callback();
package/dist/index.mjs CHANGED
@@ -11556,9 +11556,7 @@ var DiscordAlertService = class {
11556
11556
  * Simple logging (doesn't use logger to avoid circular dependencies)
11557
11557
  */
11558
11558
  log(message) {
11559
- if (this.config.environment === "development") {
11560
- console.log(`[DiscordAlertService] ${message}`);
11561
- }
11559
+ console.log(`[DiscordAlertService] ${message}`);
11562
11560
  }
11563
11561
  /**
11564
11562
  * Error logging
@@ -11663,14 +11661,20 @@ var DiscordTransport = class extends Transport {
11663
11661
  setImmediate(() => {
11664
11662
  this.emit("logged", info);
11665
11663
  });
11664
+ console.log(`[DiscordTransport] Received log - Level: ${info.level}, Enabled: ${this.transportOptions.enabled}, ShouldLog: ${this.shouldLog(info.level)}`);
11666
11665
  if (!this.transportOptions.enabled || !this.shouldLog(info.level)) {
11666
+ console.log(`[DiscordTransport] Skipping - Enabled: ${this.transportOptions.enabled}, ShouldLog: ${this.shouldLog(info.level)}`);
11667
11667
  callback();
11668
11668
  return;
11669
11669
  }
11670
- this.sendLogToDiscord(info).catch((error) => {
11670
+ console.log(`[DiscordTransport] Sending to Discord...`);
11671
+ this.sendLogToDiscord(info).then(() => {
11672
+ console.log(`[DiscordTransport] Successfully sent to Discord`);
11673
+ }).catch((error) => {
11671
11674
  console.error(
11672
11675
  `[DiscordTransport] Failed to send log to Discord:`,
11673
- error instanceof Error ? error.message : String(error)
11676
+ error instanceof Error ? error.message : String(error),
11677
+ error instanceof Error ? error.stack : ""
11674
11678
  );
11675
11679
  }).finally(() => {
11676
11680
  callback();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.614",
3
+ "version": "1.0.615",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",