mirror of
https://github.com/NixOS/nix
synced 2025-06-27 16:51:15 +02:00
comments and cleanup
This commit is contained in:
parent
70bcb39d3f
commit
9159dfe3d8
9 changed files with 7 additions and 19 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue