Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-5149

Include actual line content in parse error message

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 24.02.1
    • 25.08.0
    • Core
    • None
    • MXS-SPRINT-217

    Description

      When configuration file parsing fails in an early phase, the actual offending
      line will now be logged in the error message to make it easier to pinpoint
      the problem.

      Original Description
      Currently a configuration setting that is not in any [section] generates:

      Failed to read configuration file '/etc/maxscale.cnf': Section starting at line 2 has no name or name is empty.

      It would be nice to also have the actual line content printed for easier debugging (and also to avoid "do we count lines from one or zero" confusion)

      Attachments

        Activity

          People

            johan.wikman Johan Wikman
            hholzgra Hartmut Holzgraefe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.