From 6adf48c93801da898339ef6a8a32ac7fd48c6585 Mon Sep 17 00:00:00 2001 From: Andrey Meshkov Date: Sat, 16 May 2020 01:37:12 +0300 Subject: [PATCH] *(home): added more logging to TLS module --- home/tls.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home/tls.go b/home/tls.go index 5977f859..4bd3aea8 100644 --- a/home/tls.go +++ b/home/tls.go @@ -48,6 +48,7 @@ func tlsCreate(conf tlsConfigSettings) *TLSMod { func (t *TLSMod) load() bool { if !tlsLoadConfig(&t.conf, &t.status) { + log.Error("failed to load TLS config: %s", t.status.WarningValidation) return false } @@ -191,7 +192,7 @@ type tlsConfig struct { tlsConfigStatus `json:",inline"` } -func (t *TLSMod) handleTLSStatus(w http.ResponseWriter, r *http.Request) { +func (t *TLSMod) handleTLSStatus(w http.ResponseWriter, _ *http.Request) { t.confLock.Lock() data := tlsConfig{ tlsConfigSettings: t.conf,