From a6dda5f91cf22884a913edfe29a361101fb5e970 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 1 Mar 2017 23:21:11 +0900 Subject: [PATCH] nghttpx: Log rstatus in hex --- src/shrpx_connection_handler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shrpx_connection_handler.cc b/src/shrpx_connection_handler.cc index 60393139..0de4e4c3 100644 --- a/src/shrpx_connection_handler.cc +++ b/src/shrpx_connection_handler.cc @@ -598,8 +598,8 @@ void ConnectionHandler::handle_ocsp_complete() { auto status = WEXITSTATUS(rstatus); if (ocsp_.error || !WIFEXITED(rstatus) || status != 0) { LOG(WARN) << "ocsp query command for " << tls_ctx_data->cert_file - << " failed: error=" << ocsp_.error << ", rstatus=" << rstatus - << ", status=" << status; + << " failed: error=" << ocsp_.error << ", rstatus=" << std::hex + << rstatus << std::dec << ", status=" << status; ++ocsp_.next; proceed_next_cert_ocsp(); return;