mirror of
https://github.com/kataras/iris.git
synced 2025-12-22 12:27:02 +00:00
minor
This commit is contained in:
@@ -114,7 +114,14 @@ func (ac *AccessLog) SetOutput(writers ...io.Writer) *AccessLog {
|
||||
}
|
||||
}
|
||||
|
||||
ac.Writer = io.MultiWriter(writers...)
|
||||
switch len(writers) {
|
||||
case 0:
|
||||
case 1:
|
||||
ac.Writer = writers[0]
|
||||
default:
|
||||
ac.Writer = io.MultiWriter(writers...)
|
||||
}
|
||||
|
||||
return ac
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user