Commit 644cdfa3 authored by Romain Bignon's avatar Romain Bignon

purple messages are logged with PURPLE loglevel

parent f797f9b6
......@@ -52,7 +52,7 @@ logging {
# What you want to log
# DEBUG :Debug information (discouraged)
# PARSE :Parse information (discouraged)
# ROUTING :Routing information
# PURPLE :Purple warning messages
# DESYNCH :Desynchronization
# WARNING :Warnings
# ERR :Errors
......
......@@ -51,7 +51,7 @@ void Purple::debug(PurpleDebugLevel level, const char *category, const char *arg
{
case PURPLE_DEBUG_ERROR:
case PURPLE_DEBUG_FATAL:
b_log[W_WARNING] << "[" << category << "] " << args;
b_log[W_PURPLE] << "[" << category << "] " << args;
break;
case PURPLE_DEBUG_WARNING:
default:
......
......@@ -36,7 +36,7 @@ static struct
{ W_SNO, LOG_NOTICE, "" },
{ W_DEBUG, LOG_DEBUG, "DEBUG" },
{ W_PARSE, LOG_DEBUG, "PARSE" },
{ W_ROUTING, LOG_DEBUG, "ROUTING" },
{ W_PURPLE, LOG_DEBUG, "PURPLE" },
{ W_DESYNCH, LOG_WARNING, "DESYNCH" },
{ W_WARNING, LOG_WARNING, "WARNING" },
{ W_ERR, LOG_ERR, "ERR" },
......
......@@ -26,7 +26,7 @@ enum
{
W_DEBUG = 1 << 0, /* Debug */
W_PARSE = 1 << 1, /* Show parsing */
W_ROUTING = 1 << 2, /* Routing information */
W_PURPLE = 1 << 2, /* Routing information */
W_DESYNCH = 1 << 3, /* Desynchronization */
W_WARNING = 1 << 4, /* Warnings */
W_ERR = 1 << 5, /* Errors */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment