Prosody log level debug for test environment.

This commit is contained in:
John Livingston 2021-04-29 17:45:04 +02:00
parent 62af899a50
commit a4d671bf50

View File

@ -110,7 +110,7 @@ async function getProsodyConfig (options: RegisterServerOptions): Promise<Prosod
} }
const peertubeDomain = 'localhost' const peertubeDomain = 'localhost'
const paths = await getProsodyFilePaths(options) const paths = await getProsodyFilePaths(options)
const logMode: LogMode = 'info' const logMode: LogMode = process.env.NODE_ENV === 'test' ? 'debug' : 'info'
const mucModules: ProsodyModuleConfig[] = [] const mucModules: ProsodyModuleConfig[] = []