Skip to content

Commit fd971cf

Browse files
Merge pull request #24 from savitaashture/logscse
modified condition check
2 parents 7865e9f + 6b07794 commit fd971cf

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("waiting for instance registration: [%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, sid: %s", reporter.serviceID)
77+
continue
7678
}
7779

7880
for _, instance := range instanceIDs {

0 commit comments

Comments
 (0)