Changes between Version 65 and Version 66 of DeveloperGuidelines/CodeConventions
- Timestamp:
- 01/20/18 21:34:59 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/CodeConventions
v65 v66 34 34 For everything that is to be executed in the restricted environment (i.e. all server code): 35 35 - for messages explaining mandatory crashes that prevent the system from running at all (e.g. mandatory module import failures), use {{{sys.stderr.write()}}} 36 - for all other permanent debug/error messages: use {{{current.log.*}}}, as it can be controlled on/offcentrally, and routed to a log file when web2py isn't console-run36 - 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 37 37 - for temporary debug output in code under development, use {{{sys.stderr.write()}}} 38 38 - if absolutely necessary (re-think your design!), add the future-import to the file and use the print-''function''