From b2b489af6e915c634e280eaa86b1768566426fb8 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Wed, 4 Aug 2021 17:15:58 +0200 Subject: [PATCH] Adding debug information in the diagnostic screen. --- server/lib/diagnostic/converse.ts | 2 +- server/lib/diagnostic/uri.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/lib/diagnostic/converse.ts b/server/lib/diagnostic/converse.ts index 77bd08fd..38754421 100644 --- a/server/lib/diagnostic/converse.ts +++ b/server/lib/diagnostic/converse.ts @@ -42,7 +42,7 @@ export async function diagConverse (test: string, { settingsManager }: RegisterS ) isBuiltinError = true } else { - result.messages.push('Chat room is correct') + result.messages.push('Chat room is correct and will be: ' + chatRoom) } const chatBoshUri: string = (builtinSettings['chat-bosh-uri'] as string) || '' diff --git a/server/lib/diagnostic/uri.ts b/server/lib/diagnostic/uri.ts index c57728d7..1ab7d862 100644 --- a/server/lib/diagnostic/uri.ts +++ b/server/lib/diagnostic/uri.ts @@ -8,6 +8,7 @@ export async function diagUri (test: string, { settingsManager }: RegisterServer ]) if (/^https:\/\//.test(settings['chat-uri'] as string)) { result.ok = true + result.messages.push('Chat url will be: ' + (settings['chat-uri'] as string)) } else { result.messages.push('Incorrect value for the uri (it does not start with https://)') }