More debug logging
This commit is contained in:
parent
992a0f871c
commit
78069c6240
12
pew.go
12
pew.go
@ -565,8 +565,12 @@ func whatever(swg *sizedwaitgroup.SizedWaitGroup, ka config.Artifact,
|
|||||||
|
|
||||||
if binaryPath == "" {
|
if binaryPath == "" {
|
||||||
// TODO: build should return structure
|
// TODO: build should return structure
|
||||||
|
start := time.Now()
|
||||||
result.BuildDir, result.BuildArtifact, result.Build.Output, err =
|
result.BuildDir, result.BuildArtifact, result.Build.Output, err =
|
||||||
build(tmp, ka, ki, dockerTimeout)
|
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 {
|
if err != nil {
|
||||||
log.Print(err)
|
log.Print(err)
|
||||||
return
|
return
|
||||||
@ -602,7 +606,9 @@ func whatever(swg *sizedwaitgroup.SizedWaitGroup, ka config.Artifact,
|
|||||||
log.Print(err)
|
log.Print(err)
|
||||||
return
|
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)
|
err = preloadModules(q, ka, ki, dockerTimeout)
|
||||||
@ -611,7 +617,11 @@ func whatever(swg *sizedwaitgroup.SizedWaitGroup, ka config.Artifact,
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
start := time.Now()
|
||||||
copyArtifactAndTest(q, ka, &result, remoteTest)
|
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 {
|
func shuffleKernels(a []config.KernelInfo) []config.KernelInfo {
|
||||||
|
Loading…
Reference in New Issue
Block a user