git » gofer » commit d0f0dbf

Tidy log messages

author Alberto Bertogli
2020-06-07 10:07:57 UTC
committer Alberto Bertogli
2020-06-07 11:48:52 UTC
parent a4f71556ebc52df6bbb61e96e42d28e95746ca7f

Tidy log messages

debug/debug.go +3 -2
server/raw.go +1 -1

diff --git a/debug/debug.go b/debug/debug.go
index b318ee8..cb21f34 100644
--- a/debug/debug.go
+++ b/debug/debug.go
@@ -36,7 +36,7 @@ func init() {
 }
 
 func ServeDebugging(addr string, conf *config.Config) {
-	log.Infof("Debugging HTTP server listening on %s", addr)
+	log.Infof("debugging HTTP server listening on %q", addr)
 
 	indexData := struct {
 		Version    string
@@ -61,7 +61,8 @@ func ServeDebugging(addr string, conf *config.Config) {
 		}
 	})
 
-	http.ListenAndServe(addr, nil)
+	err := http.ListenAndServe(addr, nil)
+	log.Errorf("debugging HTTP server died: %v", err)
 }
 
 func DumpConfigFunc(conf *config.Config) http.HandlerFunc {
diff --git a/server/raw.go b/server/raw.go
index 9fd2ff7..b68ad63 100644
--- a/server/raw.go
+++ b/server/raw.go
@@ -38,7 +38,7 @@ func Raw(addr string, conf config.Raw) {
 
 	rlog := reqlog.FromName(conf.ReqLog)
 
-	log.Infof("Raw proxy on %q (%q)", addr, lis.Addr())
+	log.Infof("%q raw proxy starting on %q", addr, lis.Addr())
 	for {
 		conn, err := lis.Accept()
 		if err != nil {