Add logging, fix crash

Crash was in kublet_server when fake docker client gives it nil pointer.
This commit is contained in:
Daniel Smith
2014-07-01 17:24:17 -07:00
parent bf3b34c2e9
commit 969586a214
3 changed files with 12 additions and 2 deletions

View File

@@ -173,7 +173,7 @@ func main() {
if len(createdPods) != 7 {
glog.Fatalf("Unexpected list of created pods:\n\n%#v\n\n%#v\n\n%#v\n\n", createdPods.List(), fakeDocker1.Created, fakeDocker2.Created)
}
glog.Infof("OK")
glog.Infof("OK - found created pods: %#v", createdPods.List())
}
// Serve a file for kubelet to read.