From 6a67e021019a415b69d5f85bb157c566973413c7 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 30 May 2017 20:33:44 +0300 Subject: Extend tracer with process_run() command interface --- bbot/diagnostics.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bbot/diagnostics.cxx') diff --git a/bbot/diagnostics.cxx b/bbot/diagnostics.cxx index 5954ad1..b5bd9f8 100644 --- a/bbot/diagnostics.cxx +++ b/bbot/diagnostics.cxx @@ -74,4 +74,16 @@ namespace bbot info.type_ = "<6>"; trace_type = "<7>"; } + + // tracer + // + void tracer:: + operator() (const char* const args[], size_t n) const + { + if (verb >= 3) + { + diag_record dr (*this); + process::print (dr.os, args, n); + } + } } -- cgit v1.1