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:
Alexander Larsson
2013-09-26 15:09:31 +00:00
committed by Victor Vieux
parent 1e89c8ec2f
commit 5e59cd4e23
3 changed files with 8 additions and 11 deletions
+3 -3
View File
@@ -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
}
}