cmd/root: Sprinkle some debug logs

https://github.com/containers/toolbox/pull/809
This commit is contained in:
Debarshi Ray 2021-06-24 17:36:35 +02:00
parent 4a1aa4652e
commit 55cbccea9d

View file

@ -197,6 +197,8 @@ func rootUsage(cmd *cobra.Command) error {
}
func migrate() error {
logrus.Debug("Migrating to newer Podman")
if utils.IsInsideContainer() {
return nil
}
@ -371,6 +373,8 @@ func setUpLoggers() error {
}
func validateSubIDFile(path string) (bool, error) {
logrus.Debugf("Validating sub-ID file %s", path)
file, err := os.Open(path)
if err != nil {
logrus.Debugf("Validating sub-ID file: failed to open %s: %s", path, err)