Skip to content

Commit

Permalink
refactor: update log messages to be a bit more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
rsdmike committed Dec 7, 2022
1 parent e03709d commit 2a103f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions internal/lm/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ func (lme *LMEConnection) execute(bin_buf bytes.Buffer) error {
for {
result, err := lme.Command.Call(bin_buf.Bytes(), uint32(bin_buf.Len()))
if err != nil && (err.Error() == "empty response from AMT" || err.Error() == "no such device") {
log.Warn(err.Error())
log.Warn("Retrying...")
log.Warn("AMT Unavailable, retrying...")
break
} else if err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion internal/rps/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (p Payload) createPayload(dnsSuffix string, hostname string, amtTimeout tim
var err error
wired, _ := p.AMT.GetLANInterfaceSettings(false)
if wired.LinkStatus != "up" {
log.Warn("link status is down, unable to active AMT in Admin Control Mode (ACM)")
log.Warn("link status is down, unable to activate AMT in Admin Control Mode (ACM)")
}
payload.Version, err = p.AMT.GetVersionDataFromME("AMT", amtTimeout)
if err != nil {
Expand Down

0 comments on commit 2a103f5

Please sign in to comment.