Fix logs with missing variables (#1884)

This commit is contained in:
ScienJus 2018-11-06 18:32:02 +08:00 committed by 吴晟 Wu Sheng
parent 97974d6c63
commit 926911700e
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ public enum CacheUpdateTimer {
cache.setMappingServiceId(serviceInventory.getMappingServiceId());
cache.setMappingLastUpdateTime(serviceInventory.getMappingLastUpdateTime());
} else {
logger.warn("Unable to found the id of {} in service inventory cache.");
logger.warn("Unable to found the id of {} in service inventory cache.", serviceInventory.getSequence());
}
});
}

View File

@ -107,7 +107,7 @@ public class ServiceInstanceInventoryRegister implements IServiceInstanceInvento
serviceInstanceInventory.setHeartbeatTime(heartBeatTime);
InventoryProcess.INSTANCE.in(serviceInstanceInventory);
} else {
logger.warn("Service instance {} heartbeat, but not found in storage.");
logger.warn("Service instance {} heartbeat, but not found in storage.", serviceInstanceId);
}
}
}