You can set the desired logging level in the logging.conf:

[logger_scheduler]
level=DEBUG
handlers=consoleHandler
qualname=scheduler
propagate=0

If that doesn't help, you could try to play with the -D and -l options of 
web2py.py,


To instantiate the object once, you could implement the class as a 
singleton. Or simply create the object inside the module:

modules/mymodule.py
---------------------------------
x = SomeClass(db)

models/tasks.py
-------------------------
from mymodule import x

This should work as long as db is accessible inside the module code (not 
sure if this is the case). If not, use singleton pattern.

Reply via email to