From 6b8d5b032e26c349dcf54fee237c1d15ce32b63a Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Fri, 16 Dec 2022 01:37:54 +0100 Subject: [PATCH] cmd/root: Remove a redundant log message The callers already provide this context before calling the function, and then when logging any errors, which they should. https://github.com/containers/toolbox/pull/1202 --- src/cmd/root.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/cmd/root.go b/src/cmd/root.go index b3aee61..d1a2871 100644 --- a/src/cmd/root.go +++ b/src/cmd/root.go @@ -399,8 +399,6 @@ func validateSubIDFile(path string) (bool, error) { panic("cannot validate sub-IDs inside container") } - logrus.Debugf("Validating sub-ID file %s", path) - file, err := os.Open(path) if err != nil { return false, fmt.Errorf("failed to open: %w", err)