1
0
mirror of https://github.com/go-acme/lego.git synced 2024-11-29 09:52:07 +02:00

Adjust logging output for http-01

This commit is contained in:
xenolf 2015-12-27 19:18:38 +01:00
parent 466af28672
commit 09ff568758

View File

@ -48,7 +48,7 @@ func (s *httpChallenge) Solve(chlng challenge, domain string) error {
if strings.HasPrefix(r.Host, domain) && r.Method == "GET" {
w.Header().Add("Content-Type", "text/plain")
w.Write([]byte(keyAuth))
logf("[INFO] Served key authentication")
logf("[INFO][%s] Served key authentication", domain)
} else {
logf("[INFO] Received request for domain %s with method %s", r.Host, r.Method)
w.Write([]byte("TEST"))