Skip to content

Commit

Permalink
Fix log level
Browse files Browse the repository at this point in the history
  • Loading branch information
ramanan-ravi committed Jun 15, 2023
1 parent d26f7d3 commit 5972330
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions containerd/containerd.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ func (c Containerd) ExtractFileSystemContainer(containerId string, namespace str
_, err = cmd.Output()
if err != nil {
mountedHostPath := "/fenced/mnt/host"
logrus.Errorf("error while mounting image on temp target dir %s %s %s \n", mountStatement, " err: ", err.Error())
logrus.Errorf("Reattempting mount from %s \n", mountedHostPath)
logrus.Warnf("error while mounting image on temp target dir %s %s %s \n", mountStatement, " err: ", err.Error())
logrus.Infof("Reattempting mount from %s \n", mountedHostPath)
var containerdTmpDirs = []string{"/tmp", "/var/lib"}
var workDir, upperDir, lowerDir string
for index, option := range mounts[0].Options {
Expand All @@ -319,12 +319,12 @@ func (c Containerd) ExtractFileSystemContainer(containerId string, namespace str
mounts[0].Type, mounts[0].Source, target, workDir+":"+upperDir+":"+lowerDir)
cmd := exec.Command("bash", "-c", mountStatement)
logrus.Infof("mount command: %s", cmd.String())
_, err := cmd.Output()
_, err = cmd.Output()
if err != nil {
logrus.Errorf("error while mounting image on temp target dir 2nd attempt %s %s %s \n", mountStatement, " err: ", err.Error())
return err
}
logrus.Error("mount success \n")
logrus.Info("mount success \n")
}
_, err = exec.Command("tar", "-czvf", outputTarPath, "-C", target, ".").Output()
if !utils.CheckTarFileValid(outputTarPath) {
Expand Down

0 comments on commit 5972330

Please sign in to comment.