change output

This commit is contained in:
Jeff Carr 2025-09-25 21:35:59 -05:00
parent d331af80e0
commit 44bc7f6508
2 changed files with 5 additions and 6 deletions

View File

@ -123,7 +123,7 @@ func doPatchList() error {
for patch := range pset.Patches.IterAll() {
changed = true
if err := isPatchIdApplied(patch); err == nil {
log.Info("patchId already applied", patch.PatchId, patch.Filename)
log.Infof("%s patchId already applied %s\n", patch.PatchId, patch.Filename)
pset.Patches.Delete(patch)
changed = true
continue
@ -131,9 +131,9 @@ func doPatchList() error {
if patch.NewHash == "" || patch.NewHash == "na" {
if newpatches.Patches.AppendByPatchId(patch) {
log.Info("patchId added here", patch.PatchId)
log.Infof("%s patchId added here\n", patch.PatchId)
} else {
log.Info("patchId already here", patch.PatchId)
log.Infof("%s patchId already here\n", patch.PatchId)
pset.Patches.Delete(patch)
changed = true
}
@ -142,7 +142,7 @@ func doPatchList() error {
log.Infof("%s bad check on patch failure %v\n", patch.Filename, err)
return err
}
log.Info("newhash set already here", patch.PatchId, patch.NewHash)
log.Infof("%s %s newhash set already here\n", patch.PatchId, patch.NewHash)
}
}
}
@ -200,7 +200,6 @@ func doPatchList() error {
newpb.PrintTable()
return nil
*/
return nil
}
// Shows repos that are:

View File

@ -194,7 +194,7 @@ func isPatchIdApplied(patch *forgepb.Patch) error {
patch.PatchId = patchId
patch.NewHash = newhash
log.Info("patch: found hash:", patch.CommitHash, newhash, patch.Namespace, comment)
log.Infof("%s %s patch: found hash: %s %s\n", patch.CommitHash, newhash, patch.Namespace, comment)
return nil
}