BIND 10 trac1892, updated. 6ff859a7e871161f6d17cad42d7045d97f49470b [1892] Put back the @@Missing placeholder warning when logger checks are off
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu May 3 03:56:49 UTC 2012
The branch, trac1892 has been updated
via 6ff859a7e871161f6d17cad42d7045d97f49470b (commit)
from 68ec21193f17b3d08dce512612318da0e46ac0d5 (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 6ff859a7e871161f6d17cad42d7045d97f49470b
Author: Mukund Sivaraman <muks at isc.org>
Date: Thu May 3 09:26:35 2012 +0530
[1892] Put back the @@Missing placeholder warning when logger checks are off
-----------------------------------------------------------------------
Summary of changes:
src/lib/log/log_formatter.cc | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/log/log_formatter.cc b/src/lib/log/log_formatter.cc
index 6081e53..3d140bc 100644
--- a/src/lib/log/log_formatter.cc
+++ b/src/lib/log/log_formatter.cc
@@ -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 */
}
More information about the bind10-changes
mailing list