File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 7
7
"time"
8
8
9
9
"github.com/Azure/azure-container-networking/cns"
10
+ "github.com/Azure/azure-container-networking/cns/logger"
10
11
"github.com/Azure/azure-container-networking/cns/types"
11
- "github.com/Azure/azure-container-networking/log"
12
12
"github.com/Azure/azure-container-networking/nmagent"
13
13
"github.com/patrickmn/go-cache"
14
14
"github.com/pkg/errors"
@@ -53,7 +53,7 @@ func (h *HomeAzMonitor) readCacheValue() cns.GetHomeAzResponse {
53
53
cachedResp , found := h .values .Get (homeAzCacheKey )
54
54
if ! found {
55
55
return cns.GetHomeAzResponse {Response : cns.Response {
56
- ReturnCode : types .UnexpectedError ,
56
+ ReturnCode : types .NotFound ,
57
57
Message : "HomeAz Cache is unavailable" ,
58
58
}, HomeAzResponse : cns.HomeAzResponse {IsSupported : false }}
59
59
}
@@ -151,14 +151,14 @@ func (h *HomeAzMonitor) Populate(ctx context.Context) {
151
151
152
152
// update constructs a GetHomeAzResponse entity and update its cache
153
153
func (h * HomeAzMonitor ) update (code types.ResponseCode , msg string , homeAzResponse cns.HomeAzResponse ) {
154
- log .Debugf (msg )
155
154
resp := cns.GetHomeAzResponse {
156
155
Response : cns.Response {
157
156
ReturnCode : code ,
158
157
Message : msg ,
159
158
},
160
159
HomeAzResponse : homeAzResponse ,
161
160
}
161
+ logger .Printf ("[HomeAzMonitor] updating home az cache value: %+v" , resp )
162
162
h .updateCacheValue (resp )
163
163
}
164
164
You can’t perform that action at this time.
0 commit comments