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

maxctrl2: `show logging` prints raw JSON instead of a list of strings

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Trivial
    • Resolution: Cannot Reproduce
    • None
    • N/A
    • N/A
    • None
    • MXS-SPRINT-277

    Description

      This one is very much cosmetic but it is a difference. I'm mostly opening this just to document that this difference exists. Can be closed if it's deemed that the new output is better.

      [vagrant@localhost maxctrl-diffs]$ maxctrl show logging
      ┌────────────────────┬──────────────────────────────────────┐
      │ Current Log File   │ /usr/local/log/maxscale/maxscale.log │
      ├────────────────────┼──────────────────────────────────────┤
      │ Enabled Log Levels │ alert                                │
      │                    │ error                                │
      │                    │ warning                              │
      │                    │ notice                               │
      ├────────────────────┼──────────────────────────────────────┤
      │ Parameters         │ {                                    │
      │                    │     "log_debug": false,              │
      │                    │     "log_info": false,               │
      │                    │     "log_notice": true,              │
      │                    │     "log_throttling": {              │
      │                    │         "count": 10,                 │
      │                    │         "suppress": 10000,           │
      │                    │         "window": 1000               │
      │                    │     },                               │
      │                    │     "log_warning": true,             │
      │                    │     "maxlog": true,                  │
      │                    │     "ms_timestamp": false,           │
      │                    │     "syslog": false                  │
      │                    │ }                                    │
      └────────────────────┴──────────────────────────────────────┘
      [vagrant@localhost maxctrl-diffs]$ maxctrl2 show logging
      2026-07-22 12:20:29   notice : URL: curl -X GET -u admin:mariadb http://127.0.0.1:8989/v1/maxscale/logs
      ┌────────────────────┬──────────────────────────────────────┐
      │ Current Log File   │ /usr/local/log/maxscale/maxscale.log │
      ├────────────────────┼──────────────────────────────────────┤
      │ Enabled Log Levels │ [                                    │
      │                    │     "alert",                         │
      │                    │     "error",                         │
      │                    │     "warning",                       │
      │                    │     "notice"                         │
      │                    │ ]                                    │
      ├────────────────────┼──────────────────────────────────────┤
      │ Parameters         │ {                                    │
      │                    │     "log_debug": false,              │
      │                    │     "log_info": false,               │
      │                    │     "log_notice": true,              │
      │                    │     "log_throttling": {              │
      │                    │         "count": 10,                 │
      │                    │         "suppress": 10000,           │
      │                    │         "window": 1000               │
      │                    │     },                               │
      │                    │     "log_warning": true,             │
      │                    │     "maxlog": true,                  │
      │                    │     "ms_timestamp": false,           │
      │                    │     "syslog": false                  │
      │                    │ }                                    │
      └────────────────────┴──────────────────────────────────────┘
      

      Attachments

        Activity

          People

            johan.wikman Johan Wikman
            markus makela markus makela
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 0.2h Time Not Required
                0.2h

                Git Integration

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