aboutsummaryrefslogtreecommitdiff
path: root/src/libmain
diff options
context:
space:
mode:
authorMatthew Kenigsberg <matthewkenigsberg@gmail.com>2020-10-28 09:41:18 -0500
committerMatthew Kenigsberg <matthewkenigsberg@gmail.com>2020-10-28 17:54:28 -0500
commit6a4bf535d8126d8dc7306b3940bb49e0cc014a56 (patch)
tree7d64f9d438bbdfdde69ad81f7ed8af4c18fca3fb /src/libmain
parent5ac911bad6e5760759bcb62772cac1ddc056b773 (diff)
Capitalize JSON for consistency
Diffstat (limited to 'src/libmain')
-rw-r--r--src/libmain/loggers.cc4
-rw-r--r--src/libmain/loggers.hh2
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,
};