Commit 287b9e89 authored by eulerzgy's avatar eulerzgy

Add warning log

parent c3898970
...@@ -23,6 +23,8 @@ import ( ...@@ -23,6 +23,8 @@ import (
"k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/registry/service/allocator" "k8s.io/kubernetes/pkg/registry/service/allocator"
"k8s.io/kubernetes/pkg/util" "k8s.io/kubernetes/pkg/util"
"github.com/golang/glog"
) )
// Interface manages the allocation of ports out of a range. Interface // Interface manages the allocation of ports out of a range. Interface
...@@ -112,7 +114,7 @@ func (r *PortAllocator) AllocateNext() (int, error) { ...@@ -112,7 +114,7 @@ func (r *PortAllocator) AllocateNext() (int, error) {
func (r *PortAllocator) Release(port int) error { func (r *PortAllocator) Release(port int) error {
ok, offset := r.contains(port) ok, offset := r.contains(port)
if !ok { if !ok {
// TODO: log a warning glog.Warningf("port is not in the range when release it. port: %v", port)
return nil return nil
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment