diff options
author | Ben Burdette <bburdette@gmail.com> | 2020-06-30 16:31:55 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2020-06-30 16:31:55 -0600 |
commit | 9159dfe3d8053e0c77d32893e45f8c527ba83076 (patch) | |
tree | 4ee1f8a3a1e4b1f7e98272971798fb542fe973a5 /src/libutil/logging.cc | |
parent | 70bcb39d3fe272164c122979ee36cf2f2ea8f084 (diff) |
comments and cleanup
Diffstat (limited to 'src/libutil/logging.cc')
-rw-r--r-- | src/libutil/logging.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libutil/logging.cc b/src/libutil/logging.cc index 4de4c4012..504f5fb52 100644 --- a/src/libutil/logging.cc +++ b/src/libutil/logging.cc @@ -81,7 +81,6 @@ public: { std::stringstream oss; showErrorInfo(oss, ei, showTrace); - // oss << ei; log(ei.level, oss.str()); } @@ -158,7 +157,7 @@ struct JSONLogger : Logger { void setShowTrace(bool showTrace) override { prevLogger.setShowTrace(showTrace); } - + void addFields(nlohmann::json & json, const Fields & fields) { if (fields.empty()) return; @@ -190,7 +189,6 @@ struct JSONLogger : Logger { { std::ostringstream oss; showErrorInfo(oss, ei, getShowTrace()); - // oss << ei; nlohmann::json json; json["action"] = "msg"; |