Better logging for skipping non-regular files

Signed-off-by: Evans Mungai <mbuevans@gmail.com>
pull/31250/head
Evans Mungai 3 weeks ago
parent bb1aeaf3ea
commit d8e98d28e8
No known key found for this signature in database
GPG Key ID: BBEB812143DD14E1

@ -179,7 +179,7 @@ func CopyFile(src, dst string) (err error) {
return fmt.Errorf("stat failed: %w", err)
} else if !fi.Mode().IsRegular() {
fileType := fileTypeString(fi.Mode())
slog.Debug("skipping non-regular file", "path", src, "type", fileType, "mode", fi.Mode())
slog.Debug("skip copying non-regular file", "src", src, "dst", dst, "type", fileType, "mode", fi.Mode())
return nil
}
}

Loading…
Cancel
Save