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 {
115
115
}
116
116
}
117
117
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) {
119
119
if (timestamp) {
120
120
// [M.s.ms.us]
121
121
fprintf (fcur, " %s%d.%02d.%03d.%03d%s " ,
@@ -139,13 +139,9 @@ struct common_log_entry {
139
139
140
140
if (fcur) {
141
141
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
+ }
149
145
fflush (fcur);
150
146
}
151
147
You can’t perform that action at this time.
0 commit comments