chore: remove auto close

also fix emmylua errors in log.lua file
fixes #1005
fixes #871
This commit is contained in:
kiyan
2022-03-27 12:13:24 +02:00
parent ba121f0244
commit 524758a207
5 changed files with 11 additions and 52 deletions

View File

@@ -8,7 +8,7 @@ local M = {
--- Write to log file
--- @param typ string as per log.types config
--- @param fmt string for string.format
--- @param ... any arguments for string.format
--- @vararg any arguments for string.format
function M.raw(typ, fmt, ...)
if not M.path or not M.config.types[typ] and not M.config.types.all then
return
@@ -23,7 +23,7 @@ end
--- Write to log file via M.line
--- START is prefixed
--- @return nanos to pass to profile_end
--- @return number nanos to pass to profile_end
function M.profile_start(fmt, ...)
if not M.path or not M.config.types.profile and not M.config.types.all then
return
@@ -34,7 +34,7 @@ end
--- Write to log file via M.line
--- END is prefixed and duration in seconds is suffixed
--- @param start nanos returned from profile_start
--- @param start number nanos returned from profile_start
function M.profile_end(start, fmt, ...)
if not M.path or not M.config.types.profile and not M.config.types.all then
return