aboutsummaryrefslogtreecommitdiff
path: root/src/libutil
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-02-01 16:41:54 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-02-01 22:06:55 +0100
commit8451298b35353abafe385124cb55e8d4911032ad (patch)
tree361e15b63cfbd6ce418053b3939d9d5ef6ae6692 /src/libutil
parent5d70b454be7da683bf9f265d95cd0066140ea956 (diff)
Factor out TreeInfo
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/logging.cc2
-rw-r--r--src/libutil/util.hh1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/libutil/logging.cc b/src/libutil/logging.cc
index b379306f6..fa5c84a27 100644
--- a/src/libutil/logging.cc
+++ b/src/libutil/logging.cc
@@ -21,7 +21,7 @@ Logger * logger = makeDefaultLogger();
void Logger::warn(const std::string & msg)
{
- log(lvlWarn, ANSI_RED "warning:" ANSI_NORMAL " " + msg);
+ log(lvlWarn, ANSI_YELLOW "warning:" ANSI_NORMAL " " + msg);
}
class SimpleLogger : public Logger
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index 0aee67008..9a6268346 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -455,6 +455,7 @@ void ignoreException();
#define ANSI_FAINT "\e[2m"
#define ANSI_RED "\e[31;1m"
#define ANSI_GREEN "\e[32;1m"
+#define ANSI_YELLOW "\e[33;1m"
#define ANSI_BLUE "\e[34;1m"