Browse Source

[1892] Fix the message string in MismatchedPlaceholders exceptions

Mukund Sivaraman 13 years ago
parent
commit
1c88a49755
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/log/log_formatter.cc

+ 2 - 2
src/lib/log/log_formatter.cc

@@ -37,7 +37,7 @@ replacePlaceholder(string* message, const string& arg,
     else {
         // We're missing the placeholder, so throw an exception
         isc_throw(MismatchedPlaceholders,
-		  "Missing logger placeholder in message: " << message);
+		  "Missing logger placeholder in message: " << *message);
     }
 #else
     else {
@@ -56,7 +56,7 @@ checkExcessPlaceholders(string* message, unsigned int placeholder)
     if (pos != string::npos) {
         // Excess placeholders were found, so throw an exception
         isc_throw(MismatchedPlaceholders,
-		  "Excess logger placeholders still exist in message: " << message);
+		  "Excess logger placeholders still exist in message: " << *message);
     }
 #endif /* ENABLE_LOGGER_CHECKS */
 }