testaro 28.2.2 → 28.2.3
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/package.json +1 -1
- package/watch.js +3 -4
package/package.json
CHANGED
package/watch.js
CHANGED
|
@@ -158,7 +158,7 @@ const writeDirReport = async report => {
|
|
|
158
158
|
console.log(`Report ${reportName} saved in ${rawDir}`);
|
|
159
159
|
}
|
|
160
160
|
catch(error) {
|
|
161
|
-
console.log(`ERROR: Failed to write report (${error.message})`);
|
|
161
|
+
console.log(`ERROR: Failed to write report ${jobID} (${error.message})`);
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
else {
|
|
@@ -223,7 +223,6 @@ const writeNetReport = async report => {
|
|
|
223
223
|
else {
|
|
224
224
|
return '';
|
|
225
225
|
}
|
|
226
|
-
return ack;
|
|
227
226
|
};
|
|
228
227
|
// Archives a job.
|
|
229
228
|
const archiveJob = async (job, watchee) => {
|
|
@@ -255,7 +254,7 @@ const runJob = async (job, isDirWatch) => {
|
|
|
255
254
|
}
|
|
256
255
|
// Otherwise, i.e. if the network was watched:
|
|
257
256
|
else {
|
|
258
|
-
// Send the report to the server.
|
|
257
|
+
// Send the report to the server and report its response.
|
|
259
258
|
const ack = await writeNetReport(job);
|
|
260
259
|
console.log(ack);
|
|
261
260
|
}
|
|
@@ -279,7 +278,7 @@ exports.cycle = async (isDirWatch, isForever, interval = 300, watchee = null) =>
|
|
|
279
278
|
let empty = false;
|
|
280
279
|
const intervalMS = 1000 * Number.parseInt(interval);
|
|
281
280
|
const intervalSpec = isForever ? `with intervals of ${interval} seconds when idle ` : '';
|
|
282
|
-
console.log(`Watching started ${intervalSpec}(${nowString()})`);
|
|
281
|
+
console.log(`Watching started ${intervalSpec}(${nowString()})\n`);
|
|
283
282
|
while (statusOK) {
|
|
284
283
|
if (empty) {
|
|
285
284
|
await wait(intervalMS);
|