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
This commit is contained in:
Debarshi Ray 2022-12-16 01:37:54 +01:00
parent 21ae296ad0
commit 6b8d5b032e

View file

@ -399,8 +399,6 @@ func validateSubIDFile(path string) (bool, error) {
panic("cannot validate sub-IDs inside container") panic("cannot validate sub-IDs inside container")
} }
logrus.Debugf("Validating sub-ID file %s", path)
file, err := os.Open(path) file, err := os.Open(path)
if err != nil { if err != nil {
return false, fmt.Errorf("failed to open: %w", err) return false, fmt.Errorf("failed to open: %w", err)