deb-keystone/HACKING.rst
Morgan Fainberg 559ba206d4 Make common log import consistent
Across the project, make the common log import consistent.

Change-Id: I937cd5d337db5d2296dd9238685803bbba3391b3
2014-01-11 16:55:59 -08:00

760 B

Keystone Style Commandments

Keystone Specific Commandments

  • Avoid using "double quotes" where you can reasonably use 'single quotes'

TODO vs FIXME

  • TODO(name): implies that something should be done (cleanup, refactoring, etc), but is expected to be functional.
  • FIXME(name): implies that the method/function/etc shouldn't be used until that code is resolved and bug fixed.

Logging

Use the common logging module, and ensure you getLogger:

from keystone.openstack.common import log

LOG = log.getLogger(__name__)

LOG.debug('Foobar')