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

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Done
    • None
    • PDB 6.12.1
    • PuppetDB
    • None
    • New Feature
    • Added log-queries PuppetDB config option to control debug level logging of the internal AST and SQL that PuppetDB generates for all queries.
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support