Don't fail if the raw cgroup factory fails to register.

This will allow us to degrade gracefully in the environments where no
cgroups exist, but we'd still like cAdvisor to be running.
This commit is contained in:
Victor Marmol 2015-03-10 15:39:51 -07:00
parent 62a1788621
commit c593620f47

View File

@ -127,7 +127,7 @@ func New(memoryStorage *memory.InMemoryStorage, sysfs sysfs.SysFs) (Manager, err
// Register the raw driver.
err = raw.Register(newManager)
if err != nil {
return nil, fmt.Errorf("registration of the raw container factory failed: %v", err)
glog.Errorf("Registration of the raw container factory failed: %v", err)
}
return newManager, nil