From 4427a6ec30f2196e90cf66d140be98fff9ad65e5 Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Tue, 18 May 2010 16:39:35 +0300 Subject: Fixing the log level when the database is updated inside a document To do so I added a logs.info function to print something on the terminal and in the logs. --- otfl-luat-ovr.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'otfl-luat-ovr.lua') diff --git a/otfl-luat-ovr.lua b/otfl-luat-ovr.lua index af5e05b..b12bb8b 100644 --- a/otfl-luat-ovr.lua +++ b/otfl-luat-ovr.lua @@ -24,6 +24,16 @@ function logs.report(category,fmt,...) end end +function logs.info(category,fmt,...) + if fmt then + write_nl(format("%s | %s: %s",name,category,format(fmt,...))) + elseif category then + write_nl(format("%s | %s",name,category)) + else + write_nl(format("%s |",name)) + end +end + function logs.simple(fmt,...) if fmt then write_nl('log', format("%s | %s",name,format(fmt,...))) -- cgit v1.2.3