aboutsummaryrefslogtreecommitdiff
path: root/src/log_colored.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2018-06-28 19:38:28 +0200
committerToni Uhlig <matzeton@googlemail.com>2018-06-28 19:38:28 +0200
commitec61a37a210283a6a6b7b0825528619ab9fb7e0a (patch)
treef99d2680db6d03644913563d942aa67cfd5e42a2 /src/log_colored.c
parent2711a7142d8a7cc12bbb26add3ba0ccae9e41b45 (diff)
added logging priority 'PROTOCOL' for protocol speicific data
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/log_colored.c')
-rw-r--r--src/log_colored.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/log_colored.c b/src/log_colored.c
index 946f802..e27100f 100644
--- a/src/log_colored.c
+++ b/src/log_colored.c
@@ -81,6 +81,9 @@ void log_fmt_colored(log_priority prio, const char *fmt, ...)
case CMD:
LOG(time, "[" BLU "CMD" RESET "] ", my_pid, out);
break;
+ case PROTOCOL:
+ LOG(time, "[" CYA "PROTO" RESET "] ", my_pid, out);
+ break;
}
}
@@ -115,6 +118,7 @@ void log_fmtex_colored(log_priority prio, const char *srcfile,
LOGEX(time, "[" RED "ERROR" RESET "] ", my_pid, srcfile, line, out);
break;
case CMD:
+ case PROTOCOL:
break;
}
}
@@ -151,6 +155,7 @@ void log_fmtexerr_colored(log_priority prio, const char *srcfile,
LOGEXERR(time, "[" RED "ERROR" RESET "] ", my_pid, srcfile, line, out, saved_errno);
break;
case CMD:
+ case PROTOCOL:
break;
}
}