diff options
author | Matthew Kenigsberg <matthewkenigsberg@gmail.com> | 2020-10-28 09:41:18 -0500 |
---|---|---|
committer | Matthew Kenigsberg <matthewkenigsberg@gmail.com> | 2020-10-28 17:54:28 -0500 |
commit | 6a4bf535d8126d8dc7306b3940bb49e0cc014a56 (patch) | |
tree | 7d64f9d438bbdfdde69ad81f7ed8af4c18fca3fb /src/libmain | |
parent | 5ac911bad6e5760759bcb62772cac1ddc056b773 (diff) |
Capitalize JSON for consistency
Diffstat (limited to 'src/libmain')
-rw-r--r-- | src/libmain/loggers.cc | 4 | ||||
-rw-r--r-- | src/libmain/loggers.hh | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libmain/loggers.cc b/src/libmain/loggers.cc index 0a7291780..cdf23859b 100644 --- a/src/libmain/loggers.cc +++ b/src/libmain/loggers.cc @@ -12,7 +12,7 @@ LogFormat parseLogFormat(const std::string & logFormatStr) { else if (logFormatStr == "raw-with-logs") return LogFormat::rawWithLogs; else if (logFormatStr == "internal-json") - return LogFormat::internalJson; + return LogFormat::internalJSON; else if (logFormatStr == "bar") return LogFormat::bar; else if (logFormatStr == "bar-with-logs") @@ -26,7 +26,7 @@ Logger * makeDefaultLogger() { return makeSimpleLogger(false); case LogFormat::rawWithLogs: return makeSimpleLogger(true); - case LogFormat::internalJson: + case LogFormat::internalJSON: return makeJSONLogger(*makeSimpleLogger(true)); case LogFormat::bar: return makeProgressBar(); diff --git a/src/libmain/loggers.hh b/src/libmain/loggers.hh index cada03110..f3c759193 100644 --- a/src/libmain/loggers.hh +++ b/src/libmain/loggers.hh @@ -7,7 +7,7 @@ namespace nix { enum class LogFormat { raw, rawWithLogs, - internalJson, + internalJSON, bar, barWithLogs, }; |