Skip to content

Commit c4a1a5f

Browse files
author
fishtailfu
committed
fix: fix log.
1 parent 0f9ee53 commit c4a1a5f

File tree

1 file changed

+3
-2
lines changed
  • polaris-plugins/polaris-plugins-observability/event-pushgateway/src/main/java/com/tencent/polaris/plugins/event/pushgateway

1 file changed

+3
-2
lines changed

polaris-plugins/polaris-plugins-observability/event-pushgateway/src/main/java/com/tencent/polaris/plugins/event/pushgateway/PushGatewayEventReporter.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,14 +244,15 @@ private void postPushGatewayEvent(PushGatewayEventRequest request) {
244244
if (200 != httpResponse.getStatusLine().getStatusCode()) {
245245
String resultString = EntityUtils.toString(httpResponse.getEntity(), "utf-8");
246246
throw new RuntimeException("Report push gateway event to " + uri.getHost() + ":" + uri.getPort()
247-
+ "failed. Response = [" + resultString + "].");
247+
+ " failed. Response = [" + resultString + "].");
248248
} else {
249249
if (LOG.isDebugEnabled()) {
250250
String resultString = EntityUtils.toString(httpResponse.getEntity(), "utf-8");
251251
LOG.info("Report push gateway event to {}:{} success. Response is : {}", uri.getHost(),
252252
uri.getPort(), resultString);
253253
} else {
254-
LOG.info("Report push gateway event success.");
254+
LOG.info("Report push gateway event to {}:{} success.", uri.getHost(),
255+
uri.getPort());
255256
}
256257
}
257258
} catch (Exception e) {

0 commit comments

Comments
 (0)