*(home): added more logging to TLS module

This commit is contained in:
Andrey Meshkov 2020-05-16 01:37:12 +03:00
parent bab7b2dc65
commit 6adf48c938
1 changed files with 2 additions and 1 deletions

View File

@ -48,6 +48,7 @@ func tlsCreate(conf tlsConfigSettings) *TLSMod {
func (t *TLSMod) load() bool { func (t *TLSMod) load() bool {
if !tlsLoadConfig(&t.conf, &t.status) { if !tlsLoadConfig(&t.conf, &t.status) {
log.Error("failed to load TLS config: %s", t.status.WarningValidation)
return false return false
} }
@ -191,7 +192,7 @@ type tlsConfig struct {
tlsConfigStatus `json:",inline"` 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() t.confLock.Lock()
data := tlsConfig{ data := tlsConfig{
tlsConfigSettings: t.conf, tlsConfigSettings: t.conf,