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