logs: make logPaths work

we have to tail via sudo script

Fixes #811
This commit is contained in:
Girish Ramakrishnan
2024-02-22 18:08:32 +01:00
parent ce42680888
commit d0dc104ede
10 changed files with 29 additions and 27 deletions
+4 -4
View File
@@ -17,8 +17,8 @@
</TopBar>
</template>
<template #body>
<div v-for="line in logLines" :key="line.id" class="log-line">
<span class="time">{{ line.time }}</span><span v-html="line.html"></span>
<div v-for="line of logLines" class="log-line">
<span class="time">{{ line.time || '[no timestamp]&nbsp;' }}</span> <span v-html="line.html"></span>
</div>
<div class="bottom-spacer"></div>
</template>
@@ -137,8 +137,8 @@ export default {
this.downloadUrl = this.logsModel.getDownloadUrl();
this.logsModel.stream((id, time, html) => {
this.logLines.push({ id, time, html});
this.logsModel.stream((time, html) => {
this.logLines.push({ time, html});
const tmp = document.getElementsByClassName('cloudron-layout-body')[0];
if (!tmp) return;