mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-08 14:21:18 +00:00
Log to stdout instead of stderr
Signed-off-by: Andy Goldstein <andy.goldstein@gmail.com>
This commit is contained in:
@@ -26,6 +26,13 @@ import (
|
||||
// Ark plugin.
|
||||
func NewLogger() logrus.FieldLogger {
|
||||
logger := logrus.New()
|
||||
/*
|
||||
!!!DO NOT SET THE OUTPUT TO STDOUT!!!
|
||||
|
||||
go-plugin uses stdout for a communications protocol between client and server.
|
||||
|
||||
stderr is used for log messages from server to client. The ark server makes sure they are logged to stdout.
|
||||
*/
|
||||
|
||||
// we use the JSON formatter because go-plugin will parse incoming
|
||||
// JSON on stderr and use it to create structured log entries.
|
||||
|
||||
Reference in New Issue
Block a user