BIND 10 trac1818, updated. 3583519f279a83c982e2538c2006c1de6323ed9c [1818] Report the error code when CC_ASYNC_READ_FAILED is logged

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Apr 12 08:26:01 UTC 2012


The branch, trac1818 has been updated
       via  3583519f279a83c982e2538c2006c1de6323ed9c (commit)
      from  f3b5f8ab0efa3cc12c48a3001fbec1b53390fdf8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3583519f279a83c982e2538c2006c1de6323ed9c
Author: Mukund Sivaraman <muks at isc.org>
Date:   Thu Apr 12 13:55:45 2012 +0530

    [1818] Report the error code when CC_ASYNC_READ_FAILED is logged

-----------------------------------------------------------------------

Summary of changes:
 src/lib/cc/cc_messages.mes |    2 +-
 src/lib/cc/session.cc      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/cc/cc_messages.mes b/src/lib/cc/cc_messages.mes
index 8370cdd..94b955a 100644
--- a/src/lib/cc/cc_messages.mes
+++ b/src/lib/cc/cc_messages.mes
@@ -14,7 +14,7 @@
 
 $NAMESPACE isc::cc
 
-% CC_ASYNC_READ_FAILED asynchronous read failed
+% CC_ASYNC_READ_FAILED asynchronous read failed (error code = %1)
 This marks a low level error, we tried to read data from the message queue
 daemon asynchronously, but the ASIO library returned an error.
 
diff --git a/src/lib/cc/session.cc b/src/lib/cc/session.cc
index 1b21d21..40ab86d 100644
--- a/src/lib/cc/session.cc
+++ b/src/lib/cc/session.cc
@@ -249,7 +249,7 @@ SessionImpl::internalRead(const asio::error_code& error,
         }
         user_handler_();
     } else {
-        LOG_ERROR(logger, CC_ASYNC_READ_FAILED);
+        LOG_ERROR(logger, CC_ASYNC_READ_FAILED).arg(error.value());
         isc_throw(SessionError, "asynchronous read failed");
     }
 }



More information about the bind10-changes mailing list