From 2d95cbca56378d81ad0b89ca4f7df5cc945d6093 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Vlas=C3=A1k?= Date: Fri, 6 Aug 2021 15:13:54 +0200 Subject: [PATCH] Consistently use `default_log_level` There are currently two calls of `luaotfload.log.set_loglevel`: - The early one in `luaotfload-init.lua` that respects the free `default_log_level` variable. - The configuration one from `luaotfload-configuration.lua`, that defaults to 0. This commit makes both settings respect the free `default_log_level` variable, thus allows disabling of logging without any configuration files. --- src/luaotfload-configuration.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/luaotfload-configuration.lua b/src/luaotfload-configuration.lua index 34845981..0eb01779 100644 --- a/src/luaotfload-configuration.lua +++ b/src/luaotfload-configuration.lua @@ -209,7 +209,7 @@ local default_config = { anon_sequence = default_anon_sequence, resolver = "cached", definer = "patch", - log_level = 0, + log_level = default_log_level or 0, color_callback = "post_linebreak_filter", fontloader = default_fontloader (), },