diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-09 17:45:50 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-09 17:45:50 +0200 |
commit | e6b989e65849ea7294500a6e156371696f7cbf52 (patch) | |
tree | 44db508e9e3e8a78eee012940ca7c1eb8846f40b | |
parent | dde1b993cfd1aa07f31c0a97b8de8233e18f4fb4 (diff) | |
download | luaotfload-e6b989e65849ea7294500a6e156371696f7cbf52.tar.gz |
set higher loglevels for database tracing
-rw-r--r-- | luaotfload-database.lua | 9 | ||||
-rwxr-xr-x | luaotfload-tool.lua | 1 |
2 files changed, 6 insertions, 4 deletions
diff --git a/luaotfload-database.lua b/luaotfload-database.lua index 84b884d..f59954e 100644 --- a/luaotfload-database.lua +++ b/luaotfload-database.lua @@ -1071,25 +1071,25 @@ local scan_dir = function (dirname, fontnames, newfontnames) - texmf used to be a boolean saying if we are scanning a texmf directory ]] local n_scanned, n_new = 0, 0 --- total of fonts collected - report("log", 2, "db", "scanning", "%s", dirname) + report("both", 2, "db", "scanning directory %s", dirname) for _,i in next, font_extensions do for _,ext in next, { i, stringupper(i) } do local found = dirglob(stringformat("%s/**.%s$", dirname, ext)) local n_found = #found --- note that glob fails silently on broken symlinks, which --- happens sometimes in TeX Live. - report("log", 2, "db", "%s '%s' fonts found", n_found, ext) + report("both", 4, "db", "%s '%s' fonts found", n_found, ext) n_scanned = n_scanned + n_found for j=1, n_found do local fullname = found[j] fullname = path_normalize(fullname) - report("log", 2, "db", "loading font ā%sā", fullname) + report("both", 4, "db", "loading font ā%sā", fullname) local new = load_font(fullname, fontnames, newfontnames) if new then n_new = n_new + 1 end end end end - report("log", 2, "db", "%d fonts found in '%s'", n_scanned, dirname) + report("both", 4, "db", "%d fonts found in '%s'", n_scanned, dirname) return n_scanned, n_new end @@ -1108,6 +1108,7 @@ local function scan_texmf_fonts(fontnames, newfontnames) fontdirs = fontdirs .. stringgsub(kpseexpand_path("$TTFONTS"), "^%.", "") if not stringis_empty(fontdirs) then for _,d in next, filesplitpath(fontdirs) do + report("info", 4, "db", "Entering directory %s", d) local found, new = scan_dir(d, fontnames, newfontnames) n_scanned = n_scanned + found n_new = n_new + new diff --git a/luaotfload-tool.lua b/luaotfload-tool.lua index 8d7f6f5..0d3b229 100755 --- a/luaotfload-tool.lua +++ b/luaotfload-tool.lua @@ -572,6 +572,7 @@ local process_cmdline = function ( ) -- unit -> jobspec if config.luaotfload.self == "mkluatexfontdb" then action_pending["generate"] = true result.log_level = math.max(2, result.log_level) + logs.set_logout"stdout" end return result end |