diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-13 03:38:50 -0700 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-13 03:38:50 -0700 |
commit | c79890a917880f6f2a5802383e71841b45e9b836 (patch) | |
tree | 238018b7888d480a1f0c57b551933536a78ced75 /luaotfload-override.lua | |
parent | 0fb890f10cfec18d104e8660c4f07fe3dc2cae0e (diff) | |
parent | 78cb8b8b5dace588d4b028394daf8a4f9ff18d1a (diff) | |
download | luaotfload-c79890a917880f6f2a5802383e71841b45e9b836.tar.gz |
Merge pull request #69 from phi-gamma/master
decrease terminal and loggin output
Diffstat (limited to 'luaotfload-override.lua')
-rw-r--r-- | luaotfload-override.lua | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/luaotfload-override.lua b/luaotfload-override.lua index 99a6611..6c44f35 100644 --- a/luaotfload-override.lua +++ b/luaotfload-override.lua @@ -72,7 +72,8 @@ local stdout = function (category, fmt, ...) texiowrite_nl(tableconcat(res)) end -local level_ids = { common = 0, loading = 1, search = 2 } +--- at default (zero), we aim to be quiet +local level_ids = { common = 1, loading = 2, search = 3 } local names_report = function (mode, lvl, ...) if type(lvl) == "string" then @@ -96,6 +97,24 @@ logs.names_report = names_report --[[doc-- + The fontloader comes with the Context logging mechanisms + inaccessible. Instead, it provides dumb fallbacks based + on the functions in texio.write*() that can be overridden + by providing a function texio.reporter(). + + The fontloader output can be quite verbose, so we disable + it entirely by default. + +--doc]]-- + +local texioreporter = function (message) + names_report("log", 2, message) +end + +texio.reporter = texioreporter + +--[[doc-- + Adobe Glyph List. ------------------------------------------------------------------- |