-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to json logger in orchestrator and daemon #1831
Conversation
Use: version.ServerName, | ||
Short: "Engine Daemon (server)", | ||
PersistentPreRunE: func(cmd *cobra.Command, args []string) error { | ||
if err := server.PersistentPreRunEFn(ctx)(cmd, args); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wraped the function server.PersistentPreRunEFn
because it does some stuff using private function and it replaces the context.Logger
inside the function (even if the logger is already initialized..)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logs are not working daemon
I merged #1832 and cleanup a little bit. starting lcd # this is from the dev-starter script. could be switch to JSON if needed.
starting orchestrator # same
...
stopping all child processes # same
ERROR: accept tcp [::]:1317: use of closed network connection # don't know where exactly is outputing this |
Closes #1823
Switch to json logger in orchestrator, daemon and lcd:
I couldn't find a way to properly implement
MarshalJSON
function on protobuf struct without breaking the encoding somewhere else. So they are encoded in JSON-string (otherwise it's encoded in aCompactTextString
that's even worst):