The oslo_vmware.hacking.checks Module

oslo_vmware.hacking.checks.factory(register)
oslo_vmware.hacking.checks.no_translate_logs(logical_line, filename)

N537 - Don’t translate logs.

Check for ‘LOG.*(_(‘

Translators don’t provide translations for log messages, and operators asked not to translate them.

  • This check assumes that ‘LOG’ is a logger.
Parameters:
  • logical_line – The logical line to check.
  • filename – The file name where the logical line exists.
Returns:

None if the logical line passes the check, otherwise a tuple

is yielded that contains the offending index in logical line and a message describe the check validation failure.