Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: Switch to stream on applications logs

Andras Bacsai1a83f2635f96
diff --git a/src/routes/applications/[id]/logs/index.svelte b/src/routes/applications/[id]/logs/index.svelte
index 505bfbb8d7..41d0058a57 100644
--- a/src/routes/applications/[id]/logs/index.svelte
+++ b/src/routes/applications/[id]/logs/index.svelte
@@ -92,14 +92,15 @@
logs = allLogs.slice(currentPage * 100 - 100, currentPage * 100);
}
async function loadNewerLogs() {
+ currentPage -= 1;
if (currentPage !== 1) {
clearInterval(loadLogsInterval);
endOfLogs = false;
loadLogsInterval = null;
- currentPage -= 1;
logs = allLogs.slice(currentPage * 100 - 100, currentPage * 100);
} else {
startOfLogs = true;
+ loadLogs();
loadLogsInterval = setInterval(() => {
loadLogs();
}, 1000);