summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlua/mvc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/mvc.lua b/lua/mvc.lua
index 863b45f..51e6eaa 100755
--- a/lua/mvc.lua
+++ b/lua/mvc.lua
@@ -7,6 +7,7 @@
module(..., package.seeall)
require("posix")
+require("subprocess")
format = require("acf.format")
-- For security, set the path
@@ -425,8 +426,7 @@ end
_G.cfe = cfe
logevent = function ( message )
- os.execute ( "logger \"ACF: " .. string.gsub(message or "", "[`\\\"]", "\\%1") .. "\"" )
-
+ subprocess.call({"logger", "ACF: " .. (message or "")})
end
handle_clientdata = function(form, clientdata)