Improve logs
This commit is contained in:
parent
35f6255755
commit
e65d3c7571
3 changed files with 17 additions and 12 deletions
|
|
@ -601,18 +601,17 @@ type ingressInformation struct {
|
|||
func getIngressInformation(i, p interface{}) *ingressInformation {
|
||||
ing, ok := i.(*extensions.Ingress)
|
||||
if !ok {
|
||||
glog.Errorf("expected an Ingress type but %T was returned", i)
|
||||
glog.V(3).Infof("expected an Ingress type but %T was returned", i)
|
||||
return &ingressInformation{}
|
||||
}
|
||||
|
||||
path, ok := p.(string)
|
||||
if !ok {
|
||||
glog.Errorf("expected a string type but %T was returned", p)
|
||||
glog.V(3).Infof("expected a string type but %T was returned", p)
|
||||
return &ingressInformation{}
|
||||
}
|
||||
|
||||
if ing == nil {
|
||||
glog.Errorf("expected an Ingress")
|
||||
return &ingressInformation{}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue