< prev index next >

src/share/vm/logging/logConfiguration.cpp

Print this page

        

@@ -407,11 +407,12 @@
   for (size_t i = 0; i < _n_outputs; i++) {
     out->print("#" SIZE_FORMAT ": %s %s ", i, _outputs[i]->name(), _outputs[i]->config_string());
     for (size_t d = 0; d < LogDecorators::Count; d++) {
       LogDecorators::Decorator decorator = static_cast<LogDecorators::Decorator>(d);
       if (_outputs[i]->decorators().is_decorator(decorator)) {
-        out->print("%s,", LogDecorators::name(decorator));
+        out->print("%s%s", LogDecorators::name(decorator),
+                           d == (LogDecorators::Count - 1) ? "" : ",");
       }
     }
     out->cr();
   }
 }
< prev index next >