removed the commented out marshaling
Dieser Commit ist enthalten in:
Ursprung
3ead80fe16
Commit
2129c6339c
14
http.go
14
http.go
|
@ -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
|
||||||
|
|
Laden…
In neuem Issue referenzieren