why should I put there? I have logging function defined in models/log.py. It works correctly, I think. You want request.client?
so when I call by hand it gives "127.0.0.1", when it is from Cron it gives "None" but only if function is NOT secured. When it is secured it is not called properly and gives an error: Traceback (most recent call last): File "web2py.py", line 20, in <module> gluon.widget.start(cron=True) File "/myapp/web2py/gluon/widget.py", line 759, in start import_models=options.import_models, startfile=options.run) File "/myapp/web2py/gluon/shell.py", line 174, in run exec ('print %s()' % f, _env) File "<string>", line 1, in <module> File "/myapp/web2py/gluon/tools.py", line 2116, in f '?_next='+urllib.quote(next)) File "/myapp/web2py/gluon/http.py", line 104, in redirect Location=location) gluon.http.HTTP