Limit the amount of prints during normal runs
This removes some Debugf() calls and chages some direct prints to Debugf(). This means we don't get a bunch of spew when running the tests. Upstream-commit: bc7fa7b95773d638754eb72e7921ac328acb2ad6 Component: engine
This commit is contained in:
committed by
Victor Vieux
parent
1e89c8ec2f
commit
5e59cd4e23
@@ -107,15 +107,15 @@ func (runtime *Runtime) GetMountMethod() MountMethod {
|
||||
if runtime.mountMethod == MountMethodNone {
|
||||
// Try to automatically pick a method
|
||||
if hasFilesystemSupport("aufs") {
|
||||
log.Printf("Using AUFS backend.")
|
||||
utils.Debugf("Using AUFS backend.")
|
||||
runtime.mountMethod = MountMethodAUFS
|
||||
} else {
|
||||
_ = exec.Command("modprobe", "aufs").Run()
|
||||
if hasFilesystemSupport("aufs") {
|
||||
log.Printf("Using AUFS backend.")
|
||||
utils.Debugf("Using AUFS backend.")
|
||||
runtime.mountMethod = MountMethodAUFS
|
||||
} else {
|
||||
log.Printf("Using device-mapper backend.")
|
||||
utils.Debugf("Using device-mapper backend.")
|
||||
runtime.mountMethod = MountMethodDeviceMapper
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user