diff options
-rw-r--r-- | src/Printer.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/Printer.cc b/src/Printer.cc index 3190663..9216ec8 100644 --- a/src/Printer.cc +++ b/src/Printer.cc @@ -36,12 +36,10 @@ void Balau::Printer::_log(uint32_t level, const char * fmt, va_list ap) { if (l & level) break; - Printer * printer = getPrinter(); - m_lock.enter(); - printer->_print(prefixes[i]); - printer->_print(fmt, ap); - printer->_print("\n"); + _print(prefixes[i]); + _print(fmt, ap); + _print("\n"); m_lock.leave(); } |