Browse Source

[trac901] Message compiler uses new placeholders

Michal 'vorner' Vaner 14 years ago
parent
commit
7bb5dc265a
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/lib/log/compiler/message.cc

+ 5 - 2
src/lib/log/compiler/message.cc

@@ -535,9 +535,12 @@ main(int argc, char* argv[]) {
         string text = e.id();
         text += ", ";
         text += global.getText(e.id());
-
         // Format with arguments
-        text = isc::util::str::format(text, e.arguments());
+        vector<string> args(e.arguments());
+        for (size_t i(0); i < args.size(); ++ i) {
+            replacePlaceholder(&text, args[i], i + 1);
+        }
+
         cerr << text << "\n";
 
         return 1;