diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-30 20:33:44 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-05-30 20:34:46 +0300 |
commit | 6a67e021019a415b69d5f85bb157c566973413c7 (patch) | |
tree | 0634cb6b4bf7e23d1b19a89cad51db242a2b06b3 /bbot/diagnostics.cxx | |
parent | f8b062f808b05daea7f827d85d1989bd705b8e73 (diff) |
Extend tracer with process_run() command interface
Diffstat (limited to 'bbot/diagnostics.cxx')
-rw-r--r-- | bbot/diagnostics.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
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); + } + } } |