-
Notifications
You must be signed in to change notification settings - Fork 75
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
Fix/hw logs #385
Fix/hw logs #385
Conversation
e5d2e27
to
528cbbf
Compare
insonmnia/hardware/hardware.go
Outdated
@@ -83,6 +88,7 @@ func (h *hardwareInfo) Info() (*Hardware, error) { | |||
|
|||
gpuInfo, err := h.GPU() | |||
if err != nil { | |||
log.G(h.ctx).Warn("cannot get GPU devices list", zap.Error(err)) |
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.
Return error instead.
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.
fucking awesome yeah
insonmnia/hardware/hardware.go
Outdated
@@ -56,6 +60,7 @@ type HardwareInfo interface { | |||
} | |||
|
|||
type hardwareInfo struct { | |||
ctx context.Context |
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.
No need for this if we'll return on failed GPU fetching.
Added:
Fixed:
Outofscope: