Skip to content

Commit 89aabe7

Browse files
committed
pillar/kvm: add single quotes in the log to clearly see the empty string
Empty string in QEMU state is absolutely abnormal and is super difficult to spot this problem in our enormous logging output. Highlight the status by single quotes. Signed-off-by: Roman Penyaev <[email protected]>
1 parent e5f011c commit 89aabe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/pillar/hypervisor/kvm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ func (ctx KvmContext) Info(domainName string) (int, types.SwState, error) {
973973
}
974974

975975
if effectiveDomainState, matched := stateMap[res]; !matched {
976-
return effectiveDomainID, types.BROKEN, logError("domain %s reported to be in unexpected state %s", domainName, res)
976+
return effectiveDomainID, types.BROKEN, logError("domain %s reported to be in unexpected state '%s'", domainName, res)
977977
} else {
978978
return effectiveDomainID, effectiveDomainState, nil
979979
}

0 commit comments

Comments
 (0)