From 1f6125be8b6306ba34b5ad9df985df462ef9759c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 18 Aug 2021 09:14:51 +0200 Subject: Optimize torrent URL update --- shared/extra-utils/server/servers-command.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'shared/extra-utils/server') 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 { } async waitUntilLog (str: string, count = 1, strictCount = true) { - const logfile = this.server.servers.buildDirectory('logs/peertube.log') + const logfile = this.buildDirectory('logs/peertube.log') while (true) { const buf = await readFile(logfile) @@ -80,6 +80,10 @@ export class ServersCommand extends AbstractCommand { return this.buildDirectory(join('streaming-playlists', 'hls', videoUUID, basename(fileUrl))) } + getLogContent () { + return readFile(this.buildDirectory('logs/peertube.log')) + } + async getServerFileSize (subPath: string) { const path = this.server.servers.buildDirectory(subPath) -- cgit v1.2.3