Uploaded image for project: 'PuppetDB'
  1. PuppetDB
  2. PDB-4834

Add option to log the AST and SQL code generated by a query

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: PDB 6.12.1
    • Component/s: None
    • Labels:
      None
    • Template:
    • Team:
      HA
    • Release Notes:
      New Feature
    • Release Notes Summary:
      Added log-queries PuppetDB config option to control debug level logging of the internal AST and SQL that PuppetDB generates for all queries.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Perhaps just a config file option to start.  This may be handy in the field, particularly if coupled with solid pdb log <-> postgres log correlation ids, but it also makes it much easier to capture queries (e.g. console queries, etc.) for testing (performance, etc.).

      Include the correlation ID as part of this work if it's straightforward, otherwise let's create another ticket.

        Attachments

          Activity

            People

            Assignee:
            zachary.kent Zachary Kent
            Reporter:
            rob.browning Rob Browning
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support