Changes between Version 65 and Version 66 of DeveloperGuidelines/CodeConventions


Ignore:
Timestamp:
01/20/18 21:34:59 (4 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/CodeConventions

    v65 v66  
    3434For everything that is to be executed in the restricted environment (i.e. all server code):
    3535 - 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/off centrally, and routed to a log file when web2py isn't console-run
     36 - 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
    3737 - for temporary debug output in code under development, use {{{sys.stderr.write()}}}
    3838 - if absolutely necessary (re-think your design!), add the future-import to the file and use the print-''function''