cmd/root: Sprinkle some debug logs
https://github.com/containers/toolbox/pull/809
This commit is contained in:
parent
4a1aa4652e
commit
55cbccea9d
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue