1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00

B #5820: add 4,5 debug levels (#2135)

This commit is contained in:
Alejandro Huertas Herrero 2022-06-08 18:27:38 +02:00 committed by GitHub
parent b70d58ccc4
commit f63f313ddc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 4 deletions

View File

@ -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){};

View File

@ -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
#
#*******************************************************************************

View File

@ -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;

View File

@ -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);