From 6a9b3151822461a85bbc72b7a50e12ffb69bec3a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 22 May 2023 14:31:35 +0200 Subject: Fix tests --- server/lib/live/live-segment-sha-store.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/lib') diff --git a/server/lib/live/live-segment-sha-store.ts b/server/lib/live/live-segment-sha-store.ts index 1a0a93985..08fc460b8 100644 --- a/server/lib/live/live-segment-sha-store.ts +++ b/server/lib/live/live-segment-sha-store.ts @@ -72,6 +72,8 @@ class LiveSegmentShaStore { private writeToDisk () { return this.writeQueue.add(async () => { + logger.debug(`Writing segment sha JSON ${this.sha256Path} of ${this.videoUUID} on disk %s.`, lTags(this.videoUUID)) + // Atomic write: use rename instead of move that is not atomic await writeJson(this.sha256PathTMP, mapToJSON(this.segmentsSha256)) await rename(this.sha256PathTMP, this.sha256Path) -- cgit v1.2.3