From 3944ae127884fd080a1ca67d024bc3c6194b6b0e Mon Sep 17 00:00:00 2001 From: Will Robertson Date: Wed, 19 May 2010 14:49:17 +0930 Subject: simplify logging slightly --- otfl-font-nms.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua index 88c28ac..ffaea0a 100644 --- a/otfl-font-nms.lua +++ b/otfl-font-nms.lua @@ -485,15 +485,15 @@ local function scan_dir(dirname, fontnames, newfontnames, texmf) --]] local list, found = { }, { } local nbfound = 0 + if trace_search then + logs.report("scanning '%s'", dirname) + end for _,ext in ipairs(font_extensions) do - if trace_search then - logs.report("scanning '%s' for '%s' fonts", dirname, ext) - end found = glob(dirname .. "/**." .. ext) -- note that glob fails silently on broken symlinks, which happens -- sometimes in TeX Live. if trace_search then - logs.report("%s fonts found", #found) + logs.report("%s '%s' fonts found", #found, ext) end nbfound = nbfound + #found table.append(list, found) -- cgit v1.2.3