|
|
@ -36,7 +36,7 @@ end |
|
|
|
function _M.getInstance(self) |
|
|
|
function _M.getInstance(self) |
|
|
|
if rawget(self, "instance") == nil then |
|
|
|
if rawget(self, "instance") == nil then |
|
|
|
rawset(self, "instance", self.new()) |
|
|
|
rawset(self, "instance", self.new()) |
|
|
|
self:cron() |
|
|
|
-- self:cron() |
|
|
|
end |
|
|
|
end |
|
|
|
assert(self.instance ~= nil) |
|
|
|
assert(self.instance ~= nil) |
|
|
|
return self.instance |
|
|
|
return self.instance |
|
|
@ -136,8 +136,6 @@ function _M.cron(self) |
|
|
|
return true |
|
|
|
return true |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
local local_stmt2 = db:prepare[[INSERT INTO web_logs( |
|
|
|
local local_stmt2 = db:prepare[[INSERT INTO web_logs( |
|
|
|
time, ip, domain, server_name, method, status_code, uri, body_length, |
|
|
|
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) |
|
|
|
referer, user_agent, protocol, request_time, is_spider, request_headers, ip_list, client_port) |
|
|
|