Uploaded image for project: 'RHEL Conversions'
  1. RHEL Conversions
  2. RHELC-1319

critical -> critical_with_exit & critical_no_exit -> critical

XMLWordPrintable

    • Testable

      This is about code cleanup because logging should not cause a program to exit suddenly which is what it does now when logger.critical() is called.

      Acceptance criteria:

      1. Add a new logger, {{logger.critical_with_exit }}that does what the existing{{ logger.critical() }}does now.
      2. Move all existing usage of critical() in our code to critical_with_exit()
      3. Rename critical_no_exit() to critical()
        • At this point, new code should use logger.critical() and should expect that the log call will not exit.
        • This should perform the find and replace:{{ find . -name '*.py' -exec sed -i s/critical_no_exit/critical/g {} \;}}

            Unassigned Unassigned
            mbocek@redhat.com Michal Bocek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: