1
0

refactor: logs

This commit is contained in:
2024-05-23 10:19:46 +00:00
parent 8437d61df7
commit 75dd8f4a51
6 changed files with 14 additions and 14 deletions

View File

@ -34,7 +34,7 @@ func GenHostKernels(download bool) (kernels []distro.KernelInfo, err error) {
rawOutput, err := cmd.CombinedOutput()
if err != nil {
log.Print(string(rawOutput), err)
log.Error().Err(err).Msg(string(rawOutput))
return
}
@ -86,7 +86,7 @@ func GenHostKernels(download bool) (kernels []distro.KernelInfo, err error) {
}
vmlinux := "/usr/lib/debug/boot/vmlinux-" + krel
log.Print("vmlinux", vmlinux)
log.Info().Msgf("vmlinux %s", vmlinux)
if fs.PathExists(vmlinux) {
ki.VmlinuxPath = vmlinux
}