From c5bcf611d345835adcb607d4f64aff209b027cce Mon Sep 17 00:00:00 2001 From: John Livingston Date: Wed, 12 May 2021 11:48:38 +0200 Subject: [PATCH] Prosody log level will be the same as the Peertube's one. --- CHANGELOG.md | 1 + ROADMAP.md | 3 ++- server/lib/prosody/config.ts | 16 +++++++++++++++- server/lib/prosody/config/content.ts | 8 ++++++-- 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c0bd6ea..daa80cf9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ * Builtin prosody use a working dir provided by Peertube (needs Peertube >= 3.2.0) * Starting with Peertube 3.2.0, builtin prosody save room history on server. So when a user connects, he can get previously send messages. * Starting with Peertube 3.2.0, builtin prosody also activate mod_muc_moderation, enabling moderators to moderate messages. +* Prosody log level will be the same as the Peertube's one. ### Fixes diff --git a/ROADMAP.md b/ROADMAP.md index b67a2fcc..938dc17c 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -11,7 +11,8 @@ This roadmap is given as an indication. It will be updated as we go along accord [x] | [ ] | Builtin Prosody | Grant moderation rights to instance admins and video owner. Activate moderations commands in ConverseJS. | v2.1.0 [x] | [x] | Common | Chat should not be displayed in playlists | v2.2.0 [x] | [x] | Builtin Prosody | Do not use a temp folder, use the one provided by Peertube>=3.2.0. | Not Released Yet -[ ] | [x] | Builtin Prosody | Rotate prosody logs. Use Peertube log level for prosody. +[x] | [ ] | Builtin Prosody | Use Peertube log level for prosody. | Not Released Yet +[ ] | [x] | Builtin Prosody | Rotate prosody logs. [x] | [x] | Builtin Prosody | Data Persistence | Not Released Yet [ ] | [x] | Common | Add a checkbox per video to activate livechat. Only on lives. [ ] | [x] | Builtin Prosody | Docker: check how to install and use Prosody on docker installations. Do the documentation. diff --git a/server/lib/prosody/config.ts b/server/lib/prosody/config.ts index d46547f5..1837880f 100644 --- a/server/lib/prosody/config.ts +++ b/server/lib/prosody/config.ts @@ -5,6 +5,7 @@ import { ProsodyFilePaths } from './config/paths' import { ProsodyConfigContent } from './config/content' import { getProsodyDomain } from './config/domain' import { getAPIKey } from '../apikey' +import type { ProsodyLogLevel } from './config/content' async function _getTemporaryWorkingDir ({ peertubeHelpers, storageManager }: RegisterServerOptions): Promise { const tmpBaseDir = '/tmp/' @@ -134,7 +135,20 @@ async function getProsodyConfig (options: RegisterServerOptions): Promise