comparison src/heartbeat.js.luan @ 105:62d6725b4db0 default tip

logging
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 25 Jul 2025 14:39:13 -0600
parents 3ea9783cee39
children
comparison
equal deleted inserted replaced
104:46418395c860 105:62d6725b4db0
25 25
26 26
27 return function() 27 return function()
28 local user = current_user() 28 local user = current_user()
29 if user == nil then 29 if user == nil then
30 logger.error("no user\n"..trim(Http.request.raw_head).."\n") 30 logger.warn("no user\n"..trim(Http.request.raw_head).."\n")
31 %>
32 location = '/';
33 <%
34 return 31 return
35 end 32 end
36 local spy = Http.request.cookies.spy ~= nil 33 local spy = Http.request.cookies.spy ~= nil
37 if not spy then 34 if not spy then
38 set_online(user) 35 set_online(user)