File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ struct common_log_entry {
115115 }
116116 }
117117
118- if (fcur && level != GGML_LOG_LEVEL_NONE && level != GGML_LOG_LEVEL_CONT && prefix) {
118+ if (level != GGML_LOG_LEVEL_NONE && level != GGML_LOG_LEVEL_CONT && prefix) {
119119 if (timestamp) {
120120 // [M.s.ms.us]
121121 fprintf (fcur, " %s%d.%02d.%03d.%03d%s " ,
@@ -139,13 +139,9 @@ struct common_log_entry {
139139
140140 if (fcur) {
141141 fprintf (fcur, " %s" , msg.data ());
142- }
143-
144- if (fcur && (level == GGML_LOG_LEVEL_WARN || level == GGML_LOG_LEVEL_ERROR || level == GGML_LOG_LEVEL_DEBUG)) {
145- fprintf (fcur, " %s" , g_col[COMMON_LOG_COL_DEFAULT]);
146- }
147-
148- if (fcur) {
142+ if (level == GGML_LOG_LEVEL_WARN || level == GGML_LOG_LEVEL_ERROR || level == GGML_LOG_LEVEL_DEBUG) {
143+ fprintf (fcur, " %s" , g_col[COMMON_LOG_COL_DEFAULT]);
144+ }
149145 fflush (fcur);
150146 }
151147
You can’t perform that action at this time.
0 commit comments