Saturday, April 20, 2013

logging

http://vimeo.com/couchmode/pydata/videos/sort:date/63377197

lots of good advice on writing reliable, maintainable infrastructure code from a guy who now works at disney supporting social media games. in particular, some points on logging:

appropriate levels:
LOG for start and end of each major section of work
WARN for input data errors and environment errors
ERROR for code problems
DIE for unrecoverable errors, after a short delay

say what happened, what was expected, and what to do/whom to contact

No comments: