X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fextra-utils%2Fserver%2Fservers-command.ts;h=776d2123c20aba0757080e176ca7a9f9590cc211;hb=1f6125be8b6306ba34b5ad9df985df462ef9759c;hp=40a11e8d7f160843699e4be21d88716ea9ebd236;hpb=9df52d660feb722404be00a50f3c8a612bec1c15;p=github%2FChocobozzz%2FPeerTube.git 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)