summaryrefslogtreecommitdiff
path: root/luaotfload-database.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-09 17:45:50 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-09 17:45:50 +0200
commite6b989e65849ea7294500a6e156371696f7cbf52 (patch)
tree44db508e9e3e8a78eee012940ca7c1eb8846f40b /luaotfload-database.lua
parentdde1b993cfd1aa07f31c0a97b8de8233e18f4fb4 (diff)
downloadluaotfload-e6b989e65849ea7294500a6e156371696f7cbf52.tar.gz
set higher loglevels for database tracing
Diffstat (limited to 'luaotfload-database.lua')
-rw-r--r--luaotfload-database.lua9
1 files changed, 5 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