@adobe/spacecat-shared-utils 1.90.0 → 1.90.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [@adobe/spacecat-shared-utils-v1.90.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.90.1...@adobe/spacecat-shared-utils-v1.90.2) (2026-02-05)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add more logs to simplify tracing issues ([#1321](https://github.com/adobe/spacecat-shared/issues/1321)) ([2e07c68](https://github.com/adobe/spacecat-shared/commit/2e07c680c6bff8c504f81b14376691787697adf2))
7
+
8
+ # [@adobe/spacecat-shared-utils-v1.90.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.90.0...@adobe/spacecat-shared-utils-v1.90.1) (2026-01-29)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * log warn instead of error if metrics missing ([#1286](https://github.com/adobe/spacecat-shared/issues/1286)) ([e823a7d](https://github.com/adobe/spacecat-shared/commit/e823a7da4ce76c60f3256517f91532d71830f49d))
14
+
1
15
  # [@adobe/spacecat-shared-utils-v1.90.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.89.1...@adobe/spacecat-shared-utils-v1.90.0) (2026-01-29)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-utils",
3
- "version": "1.90.0",
3
+ "version": "1.90.2",
4
4
  "description": "Shared modules of the Spacecat Services - utils",
5
5
  "type": "module",
6
6
  "exports": {
@@ -51,7 +51,7 @@ export async function getStoredMetrics(config, context) {
51
51
 
52
52
  return metrics;
53
53
  } catch (e) {
54
- log.error(`Failed to retrieve metrics from ${filePath}, error: ${e.message}`);
54
+ log.warn(`Failed to retrieve metrics from ${filePath}, error: ${e.message}`);
55
55
  return [];
56
56
  }
57
57
  }
package/src/sqs.js CHANGED
@@ -96,10 +96,12 @@ class SQS {
96
96
 
97
97
  try {
98
98
  const data = await this.sqsClient.send(msgCommand);
99
- this.log.debug(`Success, message sent. MessageID: ${data.MessageId}${body.traceId ? `, TraceID: ${body.traceId}` : ''}`);
99
+ const queueName = queueUrl?.split('/').pop() || 'unknown';
100
+ const messageType = body.type || 'unknown';
101
+ this.log.info(`Success, message sent. Queue: ${queueName}, Type: ${messageType}, MessageID: ${data.MessageId}${body.traceId ? `, TraceID: ${body.traceId}` : ''}`);
100
102
  } catch (e) {
101
103
  const { type, code, message: msg } = e;
102
- this.log.error(`Message sent failed. Type: ${type}, Code: ${code}, Message: ${msg}`);
104
+ this.log.error(`Message send failed. Type: ${type}, Code: ${code}, Message: ${msg}`, e);
103
105
  throw e;
104
106
  }
105
107
  }