Browse Source

server: Fix log messages on XSNService

prometheus-integration
Alexis Hernandez 6 years ago
parent
commit
fa829936e4
  1. 6
      server/app/com/xsn/explorer/services/XSNService.scala

6
server/app/com/xsn/explorer/services/XSNService.scala

@ -176,7 +176,7 @@ class XSNServiceRPCImpl @Inject() (
case x => x
}
.getOrElse {
logger.warn(s"Unexpected response from XSN Server, txid = ${blockhash.string}, status = ${response.status}, response = ${response.body}")
logger.warn(s"Unexpected response from XSN Server, blockhash = ${blockhash.string}, status = ${response.status}, response = ${response.body}")
Bad(XSNUnexpectedResponseError).accumulating
}
@ -193,7 +193,7 @@ class XSNServiceRPCImpl @Inject() (
val maybe = getResult[JsValue](response, errorCodeMapper)
maybe.getOrElse {
logger.warn(s"Unexpected response from XSN Server, txid = ${blockhash.string}, status = ${response.status}, response = ${response.body}")
logger.warn(s"Unexpected response from XSN Server, blockhash = ${blockhash.string}, status = ${response.status}, response = ${response.body}")
Bad(XSNUnexpectedResponseError).accumulating
}
@ -210,7 +210,7 @@ class XSNServiceRPCImpl @Inject() (
val maybe = getResult[Blockhash](response, errorCodeMapper)
maybe.getOrElse {
logger.warn(s"Unexpected response from XSN Server, txid = ${height.int}, status = ${response.status}, response = ${response.body}")
logger.warn(s"Unexpected response from XSN Server, blockhash = ${height.int}, status = ${response.status}, response = ${response.body}")
Bad(XSNUnexpectedResponseError).accumulating
}

Loading…
Cancel
Save