1
0
Fork 0
This commit is contained in:
Jan Steemann 2014-06-17 18:23:14 +02:00
parent b952c6724d
commit 0567e64f2f
1 changed files with 4 additions and 1 deletions

View File

@ -570,9 +570,12 @@ static int GenerateMessage (char* buffer,
static void WriteStderr (TRI_log_level_e level,
char const* msg) {
if (level == TRI_LOG_LEVEL_FATAL) {
if (level == TRI_LOG_LEVEL_FATAL || level == TRI_LOG_LEVEL_ERROR) {
fprintf(stderr, TRI_SHELL_COLOR_RED "%s" TRI_SHELL_COLOR_RESET "\n", msg);
}
else if (level == TRI_LOG_LEVEL_WARNING) {
fprintf(stderr, TRI_SHELL_COLOR_YELLOW "%s" TRI_SHELL_COLOR_RESET "\n", msg);
}
else {
fprintf(stderr, "%s\n", msg);
}