Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-7325

Display values of parameters in SQL TRACE logs

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.5
    • Component/s: Database
    • Labels:

      Description

      Such log is not self-sufficient without parameter values :

      2016.02.12 15:22:19 TRACE web[sql] time=29ms | sql=SELECT        p.id as "id", p.rule_id as "ruleId", p.name as "name", p.param_type as "type", p.default_value as "defaultValue",    p.description as "description"      FROM rules_parameters p, rules r    WHERE p.rule_id=r.id    AND r.plugin_name=? AND r.plugin_rule_key=?
      2016.02.12 15:22:19 TRACE web[sql] time=24ms | sql=select        c.id,    c.kee as kee,    c.name as name,    c.parent_id as parentId,    c.characteristic_order as characteristicOrder,    c.enabled as enabled,    c.created_at as createdAt,    c.updated_at as updatedAt      from characteristics c    WHERE  c.id=?      and c.enabled=true
      2016.02.12 15:22:19 TRACE web[sql] time=44ms | sql=select        c.id,    c.kee as kee,    c.name as name,    c.parent_id as parentId,    c.characteristic_order as characteristicOrder,    c.enabled as enabled,    c.created_at as createdAt,    c.updated_at as updatedAt      from characteristics c    WHERE  c.id=?      and c.enabled=true
      2016.02.12 15:22:19 TRACE web[sql] time=38ms | sql=SELECT        p.id as "id", p.rule_id as "ruleId", p.name as "name", p.param_type as "type", p.default_value as "defaultValue",    p.description as "description"      FROM rules_parameters p, rules r    WHERE p.rule_id=r.id    AND r.plugin_name=? AND r.plugin_rule_key=?
      

        Attachments

          Activity

            People

            Assignee:
            sebastien.lesaint Sebastien Lesaint
            Reporter:
            simon.brandhof Simon Brandhof (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: