chore(healthcheck): remove gitignore log

This commit is contained in:
张泊明518370910136 2024-12-05 16:40:48 -05:00
parent 7e5dbd733e
commit 536dae6350
GPG Key ID: D47306D7062CDA9D

View File

@ -17,11 +17,7 @@ func getForbiddens(root string) ([]string, error) {
// Create a gitignore instance from the .gitignore file // Create a gitignore instance from the .gitignore file
ignore := gitignore.NewRepositoryWithCache( ignore := gitignore.NewRepositoryWithCache(
root, ".gitignore", gitignore.NewCache(), root, ".gitignore", gitignore.NewCache(), nil,
func(e gitignore.Error) bool {
slog.Error("gitignore error", "error", e)
return true
},
) )
err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error { err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {