1
0
Fork 0

removed the commented out marshaling

Dieser Commit ist enthalten in:
Sebastian Tobie 2022-11-07 18:45:22 +01:00
Ursprung 3ead80fe16
Commit 2129c6339c
1 geänderte Dateien mit 0 neuen und 14 gelöschten Zeilen

14
http.go
Datei anzeigen

@ -38,20 +38,6 @@ type Config struct {
Middleware map[string]middleware.Config 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 // Server is an wrapper for the *http.Server and *gin.Engine
type Server struct { type Server struct {
http *http.Server http *http.Server