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

[el7] Debug log msgs to have a DEBUG prefix instead of FILE

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • True
    • Testable

      There's a discrepancy between the convert2rhel output in the terminal and in the log file. The debug level messages have unexpectedly a "FILE" prefix while the terminal output has the expected "DEBUG" prefix. Because so far we've been trying to keep the content same in both, we should fix the log file prefixing.

      Acceptance criteria:

      • The log file content should be consistent with what's being printed to the terminal
      • Specifically, debug level messages should have the same prefix: "DEBUG"

       

      Example of the current terminal output:

      [01/30/2023 20:57:00] TASK - [Prepare: Check kernel compatibility with RHEL] ********************
      [01/30/2023 20:57:00] DEBUG - Booted kernel version '3.10.0' corresponds to the version available in RHEL 7
      [01/30/2023 20:57:00] DEBUG - Calling command 'rpm -qf --qf %{VERSION}&%{RELEASE}&%{ARCH}&%{NAME} /boot/vmlinuz-3.10.0-1160.81.1.el7.x86_64'
      [01/30/2023 20:57:00] DEBUG - Booted kernel package name: kernel
      [01/30/2023 20:57:01] DEBUG - The booted kernel is signed by CentOS.
      The booted kernel 3.10.0-1160.81.1.el7.x86_64 is compatible with RHEL.

       

      Example of the current convert2rhel.log content:

      [01/30/2023 20:57:00] TASK - [Prepare: Check kernel compatibility with RHEL] ********************
      [01/30/2023 20:57:00] FILE - Booted kernel version '3.10.0' corresponds to the version available in RHEL 7
      [01/30/2023 20:57:00] FILE - Calling command 'rpm -qf --qf %{VERSION}&%{RELEASE}&%{ARCH}&%{NAME} /boot/vmlinuz-3.10.0-1160.81.1.el7.x86_64'
      [01/30/2023 20:57:00] FILE - Booted kernel package name: kernel
      [01/30/2023 20:57:01] FILE - The booted kernel is signed by CentOS.
      The booted kernel 3.10.0-1160.81.1.el7.x86_64 is compatible with RHEL.
      

       

            tkuratom@redhat.com Toshio Kuratomi
            mbocek@redhat.com Michal Bocek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: