Update webstats_common.lua

This commit is contained in:
midoks
2022-10-17 13:31:36 +08:00
parent 16e45cabfc
commit 76e01201a2
+2 -2
View File
@@ -120,6 +120,8 @@ function _M.cron(self)
local db = dbs[input_sn]
if db then
db:exec([[BEGIN TRANSACTION]])
stmt2_pre = db:prepare[[INSERT INTO web_logs(
time, ip, domain, server_name, method, status_code, uri, body_length,
referer, user_agent, protocol, request_time, is_spider, request_headers, ip_list, client_port)
@@ -205,8 +207,6 @@ function _M.store_logs(self, db, stmt2, info)
self:lock_working(input_sn)
db:exec([[BEGIN TRANSACTION]])
self:store_logs_line(db, stmt2, input_sn, info)
local res, err = stmt2:finalize()