mirror of
https://github.com/kataras/iris.git
synced 2026-01-27 05:45:56 +00:00
Add the new Go 1.8 Shutdown | Remove DisableBanner, is controlled by LoggerPolicy now.
Former-commit-id: 6ef71a4b9f5a79160a42d1111dd924e244ce1f4e
This commit is contained in:
@@ -143,12 +143,10 @@ func (l LoggerPolicy) Adapt(frame *Policies) {
|
||||
//
|
||||
// Implementations must not retain p.
|
||||
//
|
||||
// Note: this Write writes as the Production Env, so the default logger should be able to log this messages
|
||||
// coming from internal http.Server (mostly)
|
||||
// you can change this behavior too.
|
||||
// Note: this Write writes as the DevMode.
|
||||
func (l LoggerPolicy) Write(p []byte) (n int, err error) {
|
||||
log := string(p)
|
||||
l(ProdMode, log)
|
||||
l(DevMode, log)
|
||||
return len(log), nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user