From 2129c6339ced158ec4c643428ab93ab118493cd1 Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Mon, 7 Nov 2022 18:45:22 +0100 Subject: [PATCH] removed the commented out marshaling --- http.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/http.go b/http.go index a7a0c39..d1de88b 100644 --- a/http.go +++ b/http.go @@ -38,20 +38,6 @@ type Config struct { Middleware map[string]middleware.Config } -/** -// MarshalObject adds the information over the object to the *log.Entry -func (c *Config) MarshalObject(e *log.Entry) { - e.Strs("Address", c.Addr).Bool("TLS", c.TLSconfig != nil) - if c.TLSconfig != nil { - e.Str("Certfile", c.Certfile) - e.Str("Keyfile", c.Keyfile) - } - e.Int("sites", len(c.Sites)) -} - -var _ log.ObjectMarshaler = &Config{} -/**/ - // Server is an wrapper for the *http.Server and *gin.Engine type Server struct { http *http.Server