Skip to content

Commit 9d94eff

Browse files
updated log messages
Signed-off-by: Nishant Bansal <[email protected]>
1 parent 49a29ed commit 9d94eff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Integrate-Checksum/main.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func processPackage(packageDir string, kpmClient *client.KpmClient, pkgName stri
195195
}
196196

197197
if existingSum, ok := manifest.Annotations[constants.DEFAULT_KCL_OCI_MANIFEST_SUM]; ok && dependency.Sum == existingSum {
198-
fmt.Printf("Manifest already up to date with matching checksum. ExistingSum: %s\n", existingSum)
198+
log.Printf("Manifest already up to date with matching checksum. ExistingSum: %s\n", existingSum)
199199
return nil
200200
}
201201

@@ -211,13 +211,13 @@ func processPackage(packageDir string, kpmClient *client.KpmClient, pkgName stri
211211
func main() {
212212
currentDir, err := os.Getwd()
213213
if err != nil {
214-
fmt.Printf("Error getting current directory: %v\n", err)
214+
log.Printf("Error getting current directory: %v\n", err)
215215
return
216216
}
217217

218218
modFilePaths, err := findKCLModFiles(currentDir)
219219
if err != nil {
220-
fmt.Printf("Error finding kcl.mod files: %v\n", err)
220+
log.Printf("Error finding kcl.mod files: %v\n", err)
221221
return
222222
}
223223

@@ -241,5 +241,5 @@ func main() {
241241
}
242242
}
243243

244-
fmt.Printf("Checksum successfully included in the package '%s' of version '%s'\n", pkgName, pkgVersion)
244+
log.Printf("Checksum successfully included in the package '%s' of version '%s'\n", pkgName, pkgVersion)
245245
}

0 commit comments

Comments
 (0)