summaryrefslogtreecommitdiff
path: root/src/core/logs.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-12-01 11:15:12 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-12-01 11:15:12 (GMT)
commit09f07c9a523dce7b8d7e013857f988f727f1a72b (patch)
treeca2e8badd81609070ef4aabd1b60174da7d6a114 /src/core/logs.c
parentefbf67e4af709c9e9d27c288399654848a4bfda8 (diff)
Created an extra log category for external errors.
Diffstat (limited to 'src/core/logs.c')
-rw-r--r--src/core/logs.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/logs.c b/src/core/logs.c
index 417039b..ec910e1 100644
--- a/src/core/logs.c
+++ b/src/core/logs.c
@@ -34,6 +34,9 @@
+/* ------------------------ EMISSIONS DE MESSAGES CLASSIQUES ------------------------ */
+
+
/* Tranche d'allocation pour les messages complexes */
#define VARIADIC_LOG_BUFSIZE 256
@@ -46,6 +49,11 @@ static void print_message_without_gui(LogMessageType, const char *);
+/* ---------------------------------------------------------------------------------- */
+/* EMISSIONS DE MESSAGES CLASSIQUES */
+/* ---------------------------------------------------------------------------------- */
+
+
/******************************************************************************
* *
* Paramètres : - *
@@ -251,8 +259,9 @@ static void print_message_without_gui(LogMessageType type, const char *msg)
prefix = FOREGROUND_RED "!" RESET;
break;
- case LMT_ERROR:
case LMT_BAD_BINARY:
+ case LMT_ERROR:
+ case LMT_EXT_ERROR:
prefix = BACKGROUND_RED "!" RESET;
break;