@adobe/helix-admin-support 1.4.0 → 1.5.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [1.5.0](https://github.com/adobe/helix-admin-support/compare/v1.4.0...v1.5.0) (2022-10-11)
2
+
3
+
4
+ ### Features
5
+
6
+ * less verbose polling ([#76](https://github.com/adobe/helix-admin-support/issues/76)) ([b00cc7c](https://github.com/adobe/helix-admin-support/commit/b00cc7cdbd6fca407a3e98d42b1764a03be92eef))
7
+
1
8
  # [1.4.0](https://github.com/adobe/helix-admin-support/compare/v1.3.15...v1.4.0) (2022-10-11)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-admin-support",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Helix Admin Support Library",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -114,7 +114,7 @@ export class BatchedQueueClient {
114
114
  const waitTime = Math.min(this.maxSqsPollTime, timeRemaining);
115
115
  const maxMgs = Math.min(10, maxMessages - messages.length);
116
116
 
117
- log.info(`polling ${this.inQueue} for ${waitTime}s (${maxTime - timeRemaining}s/${maxTime}s (max ${maxMgs} msgs)...`);
117
+ log.debug(`polling ${this.inQueue} for ${waitTime}s (${maxTime - timeRemaining}s/${maxTime}s (max ${maxMgs} msgs)...`);
118
118
  // eslint-disable-next-line no-await-in-loop
119
119
  const result = await sqs.send(new ReceiveMessageCommand({
120
120
  MaxNumberOfMessages: maxMgs,
@@ -124,8 +124,9 @@ export class BatchedQueueClient {
124
124
  }));
125
125
  const { Messages = [] } = result;
126
126
  messages.push(...Messages);
127
- log.info(`received ${Messages.length} messages from queue (${messages.length}).`);
127
+ log.debug(`last poll received ${Messages.length} messages from queue (${messages.length}).`);
128
128
  }
129
+ log.info(`received ${messages.length} messages from queue ${this.inQueue}`);
129
130
  return messages;
130
131
  }
131
132