Use log.Print* instead of fmt.Print*

This commit is contained in:
Haiyan Meng
2020-01-14 15:50:35 -08:00
parent af131c7471
commit 2e895c147e
6 changed files with 16 additions and 12 deletions

View File

@@ -2,6 +2,7 @@ package doc
import (
"fmt"
"log"
"sort"
"strings"
@@ -83,7 +84,7 @@ func (doc *KustomizationDocument) GetResources() ([]*Document, error) {
}
next, err := doc.Document.FromRelativePath(r)
if err != nil {
fmt.Printf("GetResources error: %v\n", err)
log.Printf("GetResources error: %v\n", err)
continue
}
res = append(res, &next)