From 9b01772cde123dcfa401a38f4ebca4e310ecaf54 Mon Sep 17 00:00:00 2001 From: Priya Wadhwa Date: Tue, 11 Dec 2018 12:44:23 -0800 Subject: [PATCH] Add logging --- pkg/util/fs_util.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/util/fs_util.go b/pkg/util/fs_util.go index c7c130ebd..0f3a8ed2e 100644 --- a/pkg/util/fs_util.go +++ b/pkg/util/fs_util.go @@ -553,16 +553,19 @@ func CopyFile(src, dest, buildcontext string) (bool, error) { func excludeFile(path, buildcontext string) bool { excluded, err := parseDockerignore(buildcontext) if err != nil { + logrus.Errorf("unable to parse dockerignore, including %s in build: %v", path, err) return false } if HasFilepathPrefix(path, buildcontext, false) { path, err = filepath.Rel(buildcontext, path) if err != nil { + logrus.Errorf("unable to get relative path, including %s in build: %v", path, err) return false } } match, err := fileutils.Matches(path, excluded) if err != nil { + logrus.Errorf("error matching, including %s in build: %v", path, err) return false } return match