mirror of
https://github.com/containous/traefik.git
synced 2024-12-22 13:34:03 +03:00
Change logs output from stderr to stdout
This commit is contained in:
parent
5380e48747
commit
5bf4b536e2
@ -46,7 +46,7 @@ func setupLogger(staticConfiguration *static.Configuration) {
|
||||
}
|
||||
|
||||
func getLogWriter(staticConfiguration *static.Configuration) io.Writer {
|
||||
var w io.Writer = os.Stderr
|
||||
var w io.Writer = os.Stdout
|
||||
|
||||
if staticConfiguration.Log != nil && len(staticConfiguration.Log.FilePath) > 0 {
|
||||
_, _ = os.OpenFile(staticConfiguration.Log.FilePath, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0o666)
|
||||
|
Loading…
Reference in New Issue
Block a user