Added G_LOG_LEVEL_MESSAGE to logger
Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
This commit is contained in:
parent
48eb728669
commit
e8660f2a31
@ -130,10 +130,16 @@ wmud_logger(const gchar *log_domain, GLogLevelFlags log_level, const gchar *mess
|
|||||||
switch (log_level)
|
switch (log_level)
|
||||||
{
|
{
|
||||||
case G_LOG_LEVEL_DEBUG:
|
case G_LOG_LEVEL_DEBUG:
|
||||||
|
/* Log debug messages only if we are compiled with
|
||||||
|
* debug support. The code below actually doesn't
|
||||||
|
* require it, it's just a conceptional thing. */
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
g_print("DEBUG: %s\n", message);
|
g_print("DEBUG: %s\n", message);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
case G_LOG_LEVEL_MESSAGE:
|
||||||
|
g_print("MESSAGE: %s\n", message);
|
||||||
|
break;
|
||||||
case G_LOG_LEVEL_INFO:
|
case G_LOG_LEVEL_INFO:
|
||||||
g_print("INFO: %s\n", message);
|
g_print("INFO: %s\n", message);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user