Skip to content

Commit 5791552

Browse files
committed
modified condition check
1 parent 7865e9f commit 5791552

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

csemonitor.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,14 @@ func (reporter *Reporter) Run() {
6767
instances, ok := registry.SelfInstancesCache.Get(reporter.serviceID)
6868

6969
if !ok {
70-
lager.Logger.Warnf("get SelfInstancesCache failed for, sid: %s", reporter.serviceID)
70+
lager.Logger.Warnf("get instance failed for, sid: %s", reporter.serviceID)
71+
continue
7172
}
7273

7374
instanceIDs, ok := instances.([]string)
7475
if !ok {
75-
lager.Logger.Warnf("type asserts failed, sid: %s", reporter.serviceID)
76+
lager.Logger.Warnf("type assert of instance failed for, sid: %s", reporter.serviceID)
77+
continue
7678
}
7779

7880
for _, instance := range instanceIDs {

0 commit comments

Comments
 (0)