You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2018/11/06 10:32:04 UTC
[GitHub] wu-sheng closed pull request #1884: Fix logs with missing variables
wu-sheng closed pull request #1884: Fix logs with missing variables
URL: https://github.com/apache/incubator-skywalking/pull/1884
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/cache/CacheUpdateTimer.java b/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/cache/CacheUpdateTimer.java
index 3d3cbdfff..3f06ecc1e 100644
--- a/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/cache/CacheUpdateTimer.java
+++ b/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/cache/CacheUpdateTimer.java
@@ -64,7 +64,7 @@ private void update(ModuleManager moduleManager) {
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());
}
});
}
diff --git a/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/register/service/ServiceInstanceInventoryRegister.java b/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/register/service/ServiceInstanceInventoryRegister.java
index 8bb47a210..c6b0e5ec8 100644
--- a/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/register/service/ServiceInstanceInventoryRegister.java
+++ b/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/register/service/ServiceInstanceInventoryRegister.java
@@ -107,7 +107,7 @@ private ServiceInstanceInventoryCache getServiceInstanceInventoryCache() {
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);
}
}
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services