diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-03 15:54:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-03 15:54:25 +0200 |
commit | 798a0aab2fbb5aed01bbd8419b65a03fb4602b3f (patch) | |
tree | 480c89c64c5113cc015934a82d03e0dc45ed5c67 /bbot/diagnostics.cxx | |
parent | c13366d910ebbdfc30c8b399ff29161747537d1c (diff) |
Make agent simple systemd daemon, add worker stub
Diffstat (limited to 'bbot/diagnostics.cxx')
-rw-r--r-- | bbot/diagnostics.cxx | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/bbot/diagnostics.cxx b/bbot/diagnostics.cxx index 1aa58f0..5c356f5 100644 --- a/bbot/diagnostics.cxx +++ b/bbot/diagnostics.cxx @@ -20,28 +20,26 @@ namespace bbot operator() (const diag_record& r) const { if (type_ != nullptr) - r << type_ << ": "; + r << type_; if (name_ != nullptr) r << name_ << ": "; } - void location_prologue_base:: - operator() (const diag_record& r) const - { - r << loc_.file << ':' << loc_.line << ':' << loc_.column << ": "; - - if (type_ != nullptr) - r << type_ << ": "; + const char* trace_type = "trace: "; + const char* trace_indent = "\n "; - if (name_ != nullptr) - r << name_ << ": "; + trace_mark_base:: + trace_mark_base (const char* name, const void* data) + : basic_mark_base (trace_type, trace_indent, name, data) + { } - const basic_mark error ("error"); - const basic_mark warn ("warning"); - const basic_mark info ("info"); - const basic_mark text (nullptr); - const fail_mark fail ("error"); - const fail_end endf; + basic_mark error ("error: "); + basic_mark warn ("warning: "); + basic_mark info ("info: "); + basic_mark text (nullptr); + fail_mark fail ("error: "); + + const fail_end endf; } |