-
Notifications
You must be signed in to change notification settings - Fork 103
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
update desktop to use slogger #1525
update desktop to use slogger #1525
Conversation
ee/desktop/runner/server/server.go
Outdated
desktopProcAuthTokens: make(map[string]string), | ||
controlRequestIntervalOverrider: controlRequestIntervalOverrider, | ||
} | ||
|
||
if rs.logger != nil { | ||
rs.logger = log.With(rs.logger, "component", "desktop_runner_root_server") | ||
if rs.slogger != 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.
Do we need to enforce that rs.slogger is not nil, or will calls to rs.slogger.Log below fail gracefully when nil instead of panicking?
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.
good catch, now returning error if slogger is 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.
LGTM, just the one question -- if you decide to update, ping me and I can reapprove 🙂
No description provided.