1
0

More debug logging

This commit is contained in:
dump_stack() 2023-03-18 22:55:38 +00:00
parent 992a0f871c
commit 78069c6240
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

12
pew.go
View File

@ -565,8 +565,12 @@ func whatever(swg *sizedwaitgroup.SizedWaitGroup, ka config.Artifact,
if binaryPath == "" {
// TODO: build should return structure
start := time.Now()
result.BuildDir, result.BuildArtifact, result.Build.Output, err =
build(tmp, ka, ki, dockerTimeout)
log.Debug().Msgf("%s %s %s Build done in %v",
ki.DistroType, ki.DistroRelease, ki.KernelRelease,
time.Now().Sub(start))
if err != nil {
log.Print(err)
return
@ -602,7 +606,9 @@ func whatever(swg *sizedwaitgroup.SizedWaitGroup, ka config.Artifact,
log.Print(err)
return
}
log.Debug().Msgf("Modules copied in %v", time.Now().Sub(start))
log.Debug().Msgf("%s %s %s Modules copied in %v",
ki.DistroType, ki.DistroRelease, ki.KernelRelease,
time.Now().Sub(start))
}
err = preloadModules(q, ka, ki, dockerTimeout)
@ -611,7 +617,11 @@ func whatever(swg *sizedwaitgroup.SizedWaitGroup, ka config.Artifact,
return
}
start := time.Now()
copyArtifactAndTest(q, ka, &result, remoteTest)
log.Debug().Msgf("%s %s %s Tests completed in %v",
ki.DistroType, ki.DistroRelease, ki.KernelRelease,
time.Now().Sub(start))
}
func shuffleKernels(a []config.KernelInfo) []config.KernelInfo {