From b9cb7fe71df4c990d3416cce9851dcee470eef8c Mon Sep 17 00:00:00 2001 From: Adnan Maolood Date: Sat, 31 Oct 2020 21:33:59 -0400 Subject: [PATCH] Update log.Printf calls --- cert.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cert.go b/cert.go index 7ce17cb..c7cf04b 100644 --- a/cert.go +++ b/cert.go @@ -39,11 +39,11 @@ func (c *CertificateStore) Add(scope string, cert tls.Certificate) { } if c.dir { // Write certificates - log.Printf("Writing certificate for %s to disk", scope) + log.Printf("gemini: Writing certificate for %s to %s", scope, c.path) certPath := filepath.Join(c.path, scope+".crt") keyPath := filepath.Join(c.path, scope+".key") if err := WriteCertificate(cert, certPath, keyPath); err != nil { - log.Printf("Failed to write certificate to disk: %s", err) + log.Printf("gemini: Failed to write certificate for %s: %s", scope, err) } } c.store[scope] = cert