diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/msg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/msg.c b/common/msg.c index 375eff9aad..c8190106cd 100644 --- a/common/msg.c +++ b/common/msg.c @@ -285,7 +285,7 @@ static void write_log_file(struct mp_log *log, int lev, char *text) { struct mp_log_root *root = log->root; - if (lev > MSGL_V || !root->log_file) + if (!root->log_file || lev > MPMAX(MSGL_V, log->terminal_level)) return; fprintf(root->log_file, "[%8.3f][%c][%s] %s", |