aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/live/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-25 09:58:08 +0200
committerChocobozzz <me@florianbigard.com>2023-05-25 09:58:08 +0200
commita60b1006019758ea7ffb7f62714dda08f0a28911 (patch)
tree4f511b0af2ff4f8c3c7477349eaaa403a8cfaa92 /server/lib/live/shared
parent51afea54116192c99621c5758b8f9154a4218f9f (diff)
downloadPeerTube-a60b1006019758ea7ffb7f62714dda08f0a28911.tar.gz
PeerTube-a60b1006019758ea7ffb7f62714dda08f0a28911.tar.zst
PeerTube-a60b1006019758ea7ffb7f62714dda08f0a28911.zip
Add more logs when storing master playlist in s3
Diffstat (limited to 'server/lib/live/shared')
-rw-r--r--server/lib/live/shared/muxing-session.ts12
1 files changed, 5 insertions, 7 deletions
diff --git a/server/lib/live/shared/muxing-session.ts b/server/lib/live/shared/muxing-session.ts
index 434b308e6..02691b651 100644
--- a/server/lib/live/shared/muxing-session.ts
+++ b/server/lib/live/shared/muxing-session.ts
@@ -8,12 +8,7 @@ import { computeOutputFPS } from '@server/helpers/ffmpeg'
8import { logger, loggerTagsFactory, LoggerTagsFn } from '@server/helpers/logger' 8import { logger, loggerTagsFactory, LoggerTagsFn } from '@server/helpers/logger'
9import { CONFIG } from '@server/initializers/config' 9import { CONFIG } from '@server/initializers/config'
10import { MEMOIZE_TTL, P2P_MEDIA_LOADER_PEER_VERSION, VIDEO_LIVE } from '@server/initializers/constants' 10import { MEMOIZE_TTL, P2P_MEDIA_LOADER_PEER_VERSION, VIDEO_LIVE } from '@server/initializers/constants'
11import { 11import { removeHLSFileObjectStorageByPath, storeHLSFileFromContent, storeHLSFileFromPath } from '@server/lib/object-storage'
12 removeHLSFileObjectStorageByPath,
13 storeHLSFileFromContent,
14 storeHLSFileFromFilename,
15 storeHLSFileFromPath
16} from '@server/lib/object-storage'
17import { VideoFileModel } from '@server/models/video/video-file' 12import { VideoFileModel } from '@server/models/video/video-file'
18import { VideoStreamingPlaylistModel } from '@server/models/video/video-streaming-playlist' 13import { VideoStreamingPlaylistModel } from '@server/models/video/video-streaming-playlist'
19import { MStreamingPlaylistVideo, MUserId, MVideoLiveVideo } from '@server/types/models' 14import { MStreamingPlaylistVideo, MUserId, MVideoLiveVideo } from '@server/types/models'
@@ -190,7 +185,10 @@ class MuxingSession extends EventEmitter {
190 185
191 try { 186 try {
192 if (this.streamingPlaylist.storage === VideoStorage.OBJECT_STORAGE) { 187 if (this.streamingPlaylist.storage === VideoStorage.OBJECT_STORAGE) {
193 const url = await storeHLSFileFromFilename(this.streamingPlaylist, this.streamingPlaylist.playlistFilename) 188 const masterContent = await readFile(path, 'utf-8')
189 logger.debug('Uploading live master playlist on object storage for %s', this.videoUUID, { masterContent, ...this.lTags() })
190
191 const url = await storeHLSFileFromContent(this.streamingPlaylist, this.streamingPlaylist.playlistFilename, masterContent)
194 192
195 this.streamingPlaylist.playlistUrl = url 193 this.streamingPlaylist.playlistUrl = url
196 } 194 }