Added error handling and logging for log processing.

This commit is contained in:
Benjamin Arntzen (aider)
2024-06-27 06:46:37 +01:00
parent 39bede3a7a
commit e8d40e17d0
+6
View File
@@ -65,6 +65,12 @@ setInterval(async () => {
}
});
logs = validLogs;
} catch (error) {
console.error('Error querying logs:', error);
}
} else {
console.log('No logs received');
}
if (Array.isArray(logs)) {
console.log('Processing logs array');
logs.forEach((log, index) => {