mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 10:27:09 +00:00
Add more debugging statements
This commit is contained in:
@@ -267,6 +267,7 @@ class ReportLineChangeTime {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async run (data) {
|
async run (data) {
|
||||||
|
DEBUG("Seen", data);
|
||||||
if (!data || data.channel !== "event") {
|
if (!data || data.channel !== "event") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -285,10 +286,12 @@ class ReportLineChangeTime {
|
|||||||
|
|
||||||
if (this.queue.length < ReportLineChangeTime.MAX_QUEUE_SIZE) {
|
if (this.queue.length < ReportLineChangeTime.MAX_QUEUE_SIZE) {
|
||||||
|
|
||||||
this.queue.push({
|
const item = {
|
||||||
...data.payload,
|
...structuredClone(data.payload),
|
||||||
isPending: this.queue.length,
|
isPending: this.queue.length,
|
||||||
});
|
};
|
||||||
|
DEBUG("Queueing", item);
|
||||||
|
this.queue.push(item);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
ALERT("ReportLineChangeTime queue full at", this.queue.length);
|
ALERT("ReportLineChangeTime queue full at", this.queue.length);
|
||||||
|
|||||||
Reference in New Issue
Block a user