@voidcli/logging 0.1.2 → 0.1.4

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.
@@ -68,6 +68,7 @@ class TelemetryLogger {
68
68
  void this.flush();
69
69
  }
70
70
  flush() {
71
+ console.log("Flush", this.config.enabled);
71
72
  if (this.config.enabled === false)
72
73
  return;
73
74
  if (this.flushing)
@@ -96,7 +97,8 @@ class TelemetryLogger {
96
97
  })
97
98
  .then((res) => {
98
99
  })
99
- .catch(() => {
100
+ .catch((reason) => {
101
+ console.log(reason);
100
102
  // drop on network error (do nothing)
101
103
  })
102
104
  .finally(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidcli/logging",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "VoidCLI Telemetry logging client",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",