summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2016-04-25 07:40:10 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2016-04-25 07:40:10 +0200
commit88636ab5075bad0fdd6c635629fc29a9f95d8cbc (patch)
tree6b5cf704c8d30ef672a085420db4aab9ce3da1e1
parentcc59be4bd1d31b2bb7207dc60072d2090d045fef (diff)
downloadluaotfload-88636ab5075bad0fdd6c635629fc29a9f95d8cbc.tar.gz
[loaders,resolvers] tone down default log noise
-rw-r--r--src/luaotfload-loaders.lua6
-rw-r--r--src/luaotfload-resolvers.lua12
2 files changed, 8 insertions, 10 deletions
diff --git a/src/luaotfload-loaders.lua b/src/luaotfload-loaders.lua
index 8a29256..f6cb272 100644
--- a/src/luaotfload-loaders.lua
+++ b/src/luaotfload-loaders.lua
@@ -43,14 +43,14 @@ end
local unsupported_reader = function (format)
return function (specification)
- logreport ("both", 0, "loaders",
+ logreport ("both", 4, "loaders",
"font format “%s” unsupported; cannot load %s.",
format, tostring (specification.name))
end
end
local afm_compat_message = function (specification, method)
- logreport ("both", 0, "loaders",
+ logreport ("both", 4, "loaders",
"PFB format only supported with matching \z
AFM; redirecting (“%s”, “%s”).",
tostring (specification.name), tostring (method))
@@ -78,7 +78,7 @@ local install_formats = function ()
readers [which] = reader
handlers [which] = { }
if not seqset [which] then
- logreport ("both", 0, "loaders",
+ logreport ("both", 3, "loaders",
"Extending reader sequence for “%s”.", which)
sequence [#sequence + 1] = which
seqset [which] = true
diff --git a/src/luaotfload-resolvers.lua b/src/luaotfload-resolvers.lua
index 05a0656..ee3b597 100644
--- a/src/luaotfload-resolvers.lua
+++ b/src/luaotfload-resolvers.lua
@@ -205,20 +205,18 @@ local resolve_sequence = function (seq, specification)
for i = 1, #seq do
local id = seq [i]
local mth = resolve_methods [id]
- logreport ("both", 0, "resolve", "step %d: apply method %q (%s)", i, id, mth)
+ logreport ("both", 3, "resolve", "step %d: apply method %q (%s)", i, id, mth)
if mth (specification) == true then
- logreport ("both", 0, "resolve",
- "%d: method %q indicated lookup success", i, id)
- logreport ("both", 0, "resolve",
- "method %q resolved %q -> %s (%s)",
- id, specification.specification,
+ logreport ("both", 3, "resolve",
+ "%d: method %q resolved %q -> %s (%s).",
+ i, id, specification.specification,
specification.name,
specification.forcedname)
return true
end
end
logreport ("both", 0, "resolve",
- "sequence of %d lookups yielded nothing appropriate", #seq)
+ "sequence of %d lookups yielded nothing appropriate.", #seq)
return false
end