diff --git a/include/Log.h b/include/Log.h index 2c216b2fea..fbb0b06aa7 100644 --- a/include/Log.h +++ b/include/Log.h @@ -40,7 +40,7 @@ public: DDDEBUG = 5 }; - static const char error_names[]; + static const std::string error_names[]; Log(const MessageType _level = WARNING):log_level(_level){}; diff --git a/share/etc/oned.conf b/share/etc/oned.conf index 75cac1d618..ea2022b33f 100644 --- a/share/etc/oned.conf +++ b/share/etc/oned.conf @@ -47,7 +47,13 @@ # file to log in the oned.log file # syslog to use the syslog facilities # std to use the default log stream (stderr) to use with systemd -# debug_level: 0 = ERROR, 1 = WARNING, 2 = INFO, 3 = DEBUG +# debug_level: +# 0 = ERROR +# 1 = WARNING +# 2 = INFO +# 3 = DEBUG +# 4 = DDEBUG +# 5 = DDDEBUG # use_vms_location: defines if store VM logs in VMS_LOCATION # #******************************************************************************* diff --git a/src/log/Log.cc b/src/log/Log.cc index ea43e3fc69..63437ad8c6 100644 --- a/src/log/Log.cc +++ b/src/log/Log.cc @@ -29,7 +29,7 @@ using namespace std; /* -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- */ -const char Log::error_names[] ={ 'E', 'W', 'I', 'D', 'D', 'D' }; +const string Log::error_names[] ={ "E", "W", "I", "D", "DD", "DDD" }; unsigned int Log::zone_id = 0; diff --git a/src/nebula/Nebula.cc b/src/nebula/Nebula.cc index 530afd7fab..a681fe2eb1 100644 --- a/src/nebula/Nebula.cc +++ b/src/nebula/Nebula.cc @@ -241,7 +241,7 @@ void Nebula::start(bool bootstrap_only) NebulaLog::log("ONE",Log::INFO,os); os.str(""); - os << "Log level:" << clevel << " [0=ERROR,1=WARNING,2=INFO,3=DEBUG]"; + os << "Log level:" << clevel << " [0=ERROR,1=WARNING,2=INFO,3=DEBUG,4=DDEBUG,5=DDDEBUG]"; NebulaLog::log("ONE",Log::INFO,os);