Refactored error handling in log querying.

This commit is contained in:
Benjamin Arntzen
2024-06-27 06:00:00 +01:00
committed by Benjamin Arntzen (aider)
parent fd43082ff5
commit de80c1a849
+5 -4
View File
@@ -48,12 +48,13 @@ setInterval(async () => {
});
}
});
} else {
console.error('Logs response is not an array:', logs);
}
} catch (error) {
console.error('Error querying logs:', error);
} else {
console.error('Logs response is not an array:', logs);
}
} catch (error) {
console.error('Error querying logs:', error);
}
}, 3000);
server.listen(3000, () => {