Drop NO_LEVEL; it does not look very pretty now.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 15 Apr 2013 23:15:55 +0000 (01:15 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 15 Apr 2013 23:15:55 +0000 (01:15 +0200)
log.cpp
log.h
main.cpp

diff --git a/log.cpp b/log.cpp
index 39ad9eb..0b3db4f 100644 (file)
--- a/log.cpp
+++ b/log.cpp
@@ -71,10 +71,6 @@ void log(LogLevel log_level, const char *fmt, ...)
        int syslog_level;
 
        switch (log_level) {
-       case NO_LEVEL:
-               log_level_str = "";
-               syslog_level = LOG_INFO;
-               break;
        case INFO:
                log_level_str = "INFO:    ";
                syslog_level = LOG_INFO;
diff --git a/log.h b/log.h
index ce731ab..9ba0b5a 100644 (file)
--- a/log.h
+++ b/log.h
@@ -6,7 +6,6 @@
 #include <string>
 
 enum LogLevel {
-       NO_LEVEL,
        INFO,
        WARNING,
        ERROR,
index 4a5904b..0c58f41 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -276,7 +276,7 @@ start:
        // Open logs as soon as possible.
        open_logs(config.log_destinations);
 
-       log(NO_LEVEL, "Cubemap " SERVER_VERSION " starting.");
+       log(INFO, "Cubemap " SERVER_VERSION " starting.");
        servers = new ServerPool(config.num_servers);
 
        CubemapStateProto loaded_state;