221 | | - for messages explaining mandatory crashes that prevent the system from running at all (e.g. mandatory module import failures), use {{{sys.stderr.write()}}} |
222 | | - for all other permanent debug/error messages: use {{{current.log.*}}}, as it can be controlled centrally, and routed to a log file when web2py isn't console-run |
| 221 | - for messages that are relevant during system setup (e.g. 1st run, module import failures etc.), use {{{sys.stderr.write()}}} |
| 222 | - for run-time debug/error messages: use {{{current.log.*}}}, as it can be controlled centrally, and routed to a log file when web2py isn't console-run |