Commit 387af915 authored by Tomas Hlavacek's avatar Tomas Hlavacek

Add loging of request source IPs to ulg main()

Log requests, source IPs, actions and parameters of all CGI calls.
parent e869881b
......@@ -744,6 +744,8 @@ if __name__=="__main__":
action = form.getvalue('action',None)
params = dict([(k,form.getvalue(k)) for k in form.keys() if k != 'action'])
ulgmodel.log("Request from "+os.environ["REMOTE_ADDR"]+" with action="+str(action)+" params="+str(params)+'.')
if(action):
if(action == 'index'):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment