@adobe/spacecat-shared-utils 1.51.0 → 1.51.1
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 +7 -0
- package/package.json +1 -1
- package/src/metrics-store.js +2 -2
- package/src/sqs.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [@adobe/spacecat-shared-utils-v1.51.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.51.0...@adobe/spacecat-shared-utils-v1.51.1) (2025-09-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* remove unnecessary logs to reduce Coralogix usage ([#947](https://github.com/adobe/spacecat-shared/issues/947)) ([c93fa4f](https://github.com/adobe/spacecat-shared/commit/c93fa4f69238106caa0f8150df029e4535c99e39))
|
|
7
|
+
|
|
1
8
|
# [@adobe/spacecat-shared-utils-v1.51.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.50.8...@adobe/spacecat-shared-utils-v1.51.0) (2025-09-25)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/metrics-store.js
CHANGED
|
@@ -45,7 +45,7 @@ export async function getStoredMetrics(config, context) {
|
|
|
45
45
|
const response = await s3.s3Client.send(command);
|
|
46
46
|
const content = await response.Body?.transformToString();
|
|
47
47
|
const metrics = JSON.parse(content);
|
|
48
|
-
log.
|
|
48
|
+
log.debug(`Successfully retrieved ${metrics.length} metrics from ${filePath}`);
|
|
49
49
|
|
|
50
50
|
return metrics;
|
|
51
51
|
} catch (e) {
|
|
@@ -72,7 +72,7 @@ export async function storeMetrics(content, config, context) {
|
|
|
72
72
|
|
|
73
73
|
try {
|
|
74
74
|
const response = await s3.s3Client.send(command);
|
|
75
|
-
log.
|
|
75
|
+
log.debug(`Successfully uploaded metrics to ${filePath}, response: ${JSON.stringify(response)}`);
|
|
76
76
|
|
|
77
77
|
return filePath;
|
|
78
78
|
} catch (e) {
|
package/src/sqs.js
CHANGED
|
@@ -71,7 +71,7 @@ class SQS {
|
|
|
71
71
|
|
|
72
72
|
try {
|
|
73
73
|
const data = await this.sqsClient.send(msgCommand);
|
|
74
|
-
this.log.
|
|
74
|
+
this.log.debug(`Success, message sent. MessageID: ${data.MessageId}`);
|
|
75
75
|
} catch (e) {
|
|
76
76
|
const { type, code, message: msg } = e;
|
|
77
77
|
this.log.error(`Message sent failed. Type: ${type}, Code: ${code}, Message: ${msg}`);
|
|
@@ -120,7 +120,7 @@ export function sqsEventAdapter(fn) {
|
|
|
120
120
|
|
|
121
121
|
const record = records[0];
|
|
122
122
|
|
|
123
|
-
log.
|
|
123
|
+
log.debug(`Received ${records.length} records. ID of the first message in the batch: ${record.messageId}`);
|
|
124
124
|
|
|
125
125
|
try {
|
|
126
126
|
message = JSON.parse(record.body);
|