aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/server
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils/server')
-rw-r--r--shared/extra-utils/server/servers-command.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/shared/extra-utils/server/servers-command.ts b/shared/extra-utils/server/servers-command.ts
index 40a11e8d7..776d2123c 100644
--- a/shared/extra-utils/server/servers-command.ts
+++ b/shared/extra-utils/server/servers-command.ts
@@ -55,7 +55,7 @@ export class ServersCommand extends AbstractCommand {
55 } 55 }
56 56
57 async waitUntilLog (str: string, count = 1, strictCount = true) { 57 async waitUntilLog (str: string, count = 1, strictCount = true) {
58 const logfile = this.server.servers.buildDirectory('logs/peertube.log') 58 const logfile = this.buildDirectory('logs/peertube.log')
59 59
60 while (true) { 60 while (true) {
61 const buf = await readFile(logfile) 61 const buf = await readFile(logfile)
@@ -80,6 +80,10 @@ export class ServersCommand extends AbstractCommand {
80 return this.buildDirectory(join('streaming-playlists', 'hls', videoUUID, basename(fileUrl))) 80 return this.buildDirectory(join('streaming-playlists', 'hls', videoUUID, basename(fileUrl)))
81 } 81 }
82 82
83 getLogContent () {
84 return readFile(this.buildDirectory('logs/peertube.log'))
85 }
86
83 async getServerFileSize (subPath: string) { 87 async getServerFileSize (subPath: string) {
84 const path = this.server.servers.buildDirectory(subPath) 88 const path = this.server.servers.buildDirectory(subPath)
85 89