]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1892] Put back the @@Missing placeholder warning when logger checks are off
authorMukund Sivaraman <muks@isc.org>
Thu, 3 May 2012 03:56:35 +0000 (09:26 +0530)
committerMukund Sivaraman <muks@isc.org>
Fri, 4 May 2012 04:03:04 +0000 (09:33 +0530)
src/lib/log/log_formatter.cc

index 6081e53e5c72a89ab275216c54a1f0cac26d20d6..3d140bc86a0105b0fc034fd0ad10989264e0c1e1 100644 (file)
@@ -39,6 +39,11 @@ replacePlaceholder(string* message, const string& arg,
         isc_throw(MismatchedPlaceholders,
                  "Missing logger placeholder in message: " << message);
     }
+#else
+    else {
+        // We're missing the placeholder, so add some complain
+        message->append(" @@Missing placeholder " + mark + " for '" + arg + "'@@");
+    }
 #endif /* ENABLE_LOGGER_CHECKS */
 }