diff --git a/silkmvc/Router.lua b/silkmvc/Router.lua index c73f225..cb27874 100644 --- a/silkmvc/Router.lua +++ b/silkmvc/Router.lua @@ -91,7 +91,7 @@ function Router:delegate() data.controller.main = true views.__main__ = self:call(data) if not views.__main__ then - self:info("No view available for action: %s:%s", data.controller.class, data.action) + self:debug("No view available for action: %s:%s", data.controller.class, data.action) return end -- get all visible routes diff --git a/silkmvc/core/mimes.lua b/silkmvc/core/mimes.lua index 01c22ff..91edc7f 100644 --- a/silkmvc/core/mimes.lua +++ b/silkmvc/core/mimes.lua @@ -43,11 +43,15 @@ function std.extra_mime(name) local ext = utils.ext(name) local mpath = __ROOT__ .. "/" .. "mimes.json" if WWW_ROOT and not ulib.exists(mpath) then - local mpath = WWW_ROOT .. "/" .. "mimes.json" + LOG_DEBUG("No extra mimes found in %s", mpath) + mpath = WWW_ROOT .. "/" .. "mimes.json" + LOG_DEBUG("Trying to looking for extra mimes in: %s", mpath) end local xmimes = {} if ulib.exists(mpath) then xmimes = JSON.decodeFile(mpath) + else + LOG_DEBUG("No extra mimes") end if (name:find("Makefile$")) then return "text/makefile", false