Open rdavydov opened 7 months ago
Specifically this:
// Function to get the full log content
function getLog() {
if (isLogCheckboxChecked) {
$.get(`/log?lastIndex=${lastReceivedLogIndex}`, function (data) {
// Process and display the new log entries received
$("#log-content").append(data);
// Scroll to the bottom of the log content
$("#log-content").scrollTop($("#log-content")[0].scrollHeight);
// Update the last received log index
lastReceivedLogIndex += data.length;
// Call getLog() again after a certain interval (e.g., 1 second)
setTimeout(getLog, 1000);
});
}
}
and the python backend part.
Is your feature request related to a problem?
No response
Proposed solution
Analytics log: rewrite the logic using long polling
Alternatives you've considered
No response
Additional context
No response