From ae95560cc13d2401d88b5575100f2c815847da39 Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Mon, 17 May 2010 22:54:47 +0300 Subject: Printing the name of the loaded database file in the log --- otfl-font-nms.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua index 37ee8e3..5c001c5 100644 --- a/otfl-font-nms.lua +++ b/otfl-font-nms.lua @@ -50,20 +50,21 @@ function names.load() local localpath = names.path.localdir .. names.path.basename local systempath = names.path.systemdir .. names.path.basename local kpsefound = kpse.find_file(names.path.basename) + local foundname local data if kpsefound and file.isreadable(kpsefound) then data = dofile(kpsefound) + foundname = kpsefound elseif file.isreadable(localpath) then data = dofile(localpath) + foundname = localpath elseif file.isreadable(systempath) then data = dofile(systempath) + foundname = systempath end if data then - if trace_loading then - logs.report("load font", - "loaded font names database: %s", - foundname) - end + logs.report("load font", + "loaded font names database: %s", foundname) else logs.report("load font", "no font names database found, generating new one") -- cgit v1.2.3