Change logs output from stderr to stdout
This commit is contained in:
parent
5380e48747
commit
5bf4b536e2
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ func setupLogger(staticConfiguration *static.Configuration) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func getLogWriter(staticConfiguration *static.Configuration) io.Writer {
|
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 {
|
if staticConfiguration.Log != nil && len(staticConfiguration.Log.FilePath) > 0 {
|
||||||
_, _ = os.OpenFile(staticConfiguration.Log.FilePath, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0o666)
|
_, _ = os.OpenFile(staticConfiguration.Log.FilePath, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0o666)
|
||||||
|
|
Loading…
Reference in a new issue