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

Multiple warnings from the REST-API are printed on the same line

    XMLWordPrintable

Details

    Description

      If a maxctrl command causes multiple warnings to be emitted, they are all logged on the same line:

      maxctrl destroy server server1 --force
      Warning: Saving runtime modifications to 'MariaDB-Monitor' in '/home/markusjm/build-develop/data/maxscale.cnf.d/MariaDB-Monitor.cnf'. The modified values will override the values found in the static configuration files.;Saving runtime modifications to 'RW-Split-Hint-Router' in '/home/markusjm/build-develop/data/maxscale.cnf.d/RW-Split-Hint-Router.cnf'. The modified values will override the values found in the static configuration files.;Saving runtime modifications to 'RW-Split-Router' in '/home/markusjm/build-develop/data/maxscale.cnf.d/RW-Split-Router.cnf'. The modified values will override the values found in the static configuration files.;Saving runtime modifications to 'SchemaRouter-Router' in '/home/markusjm/build-develop/data/maxscale.cnf.d/SchemaRouter-Router.cnf'. The modified values will override the values found in the static configuration files.;Saving runtime modifications to 'Read-Connection-Router' in '/home/markusjm/build-develop/data/maxscale.cnf.d/Read-Connection-Router.cnf'. The modified values will override the values found in the static configuration files.
      To hide these warnings, run:
       
          export MAXCTRL_WARNINGS=0
       
      OK
      

      A more readable form of that would be:

      maxctrl destroy server server1 --force
      Warning: Saving runtime modifications to 'MariaDB-Monitor' in '/home/markusjm/build-develop/data/maxscale.cnf.d/MariaDB-Monitor.cnf'. The modified values will override the values found in the static configuration files.
      Warning: Saving runtime modifications to 'RW-Split-Hint-Router' in '/home/markusjm/build-develop/data/maxscale.cnf.d/RW-Split-Hint-Router.cnf'. The modified values will override the values found in the static configuration files.
      Warning: Saving runtime modifications to 'SchemaRouter-Router' in '/home/markusjm/build-develop/data/maxscale.cnf.d/SchemaRouter-Router.cnf'. The modified values will override the values found in the static configuration files.
      Warning: Saving runtime modifications to 'RW-Split-Router' in '/home/markusjm/build-develop/data/maxscale.cnf.d/RW-Split-Router.cnf'. The modified values will override the values found in the static configuration files.
      Warning: Saving runtime modifications to 'Read-Connection-Router' in '/home/markusjm/build-develop/data/maxscale.cnf.d/Read-Connection-Router.cnf'. The modified values will override the values found in the static configuration files.
      Warning: Object 'server1' is defined in a static configuration file and cannot be permanently deleted. If MaxScale is restarted, the object will appear again.
      To hide these warnings, run:
       
          export MAXCTRL_WARNINGS=0
       
      OK
      

      Attachments

        Activity

          People

            markus makela markus makela
            markus makela markus makela
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.