Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-797

[GH-519] Improve readability of EchoSQLLogger output format

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      This issue is created automatically through a Github pull request on behalf of sandvige:

      Url: https://github.com/doctrine/dbal/pull/519

      Message:

      When using EchoSQLLogger, the output format is a bit clumsy, and can be very hard to interpret. Here is just a fix to condensate a bit the output format when parameters and types are available.

      Before:
      ```
      array(4) {
      [0] =>
      array(1)

      { 'NaPingSchd' => int(2) }
      [1] =>
      int(60)
      [2] =>
      int(43200)
      [3] =>
      int(110)
      }
      array(4) { [0] => string(3) "map" [1] => string(7) "integer" [2] => string(7) "integer" [3] => string(7) "integer" }
      ```

      After:
      ```
      array(4) {
      'map index: 0' =>
      array(1) { 'NaPingSchd' => int(2) }

      'integer index: 1' =>
      int(60)
      'integer index: 2' =>
      int(43200)
      'integer index: 3' =>
      int(110)
      }
      ```

        Activity

        Hide
        Doctrine Bot added a comment -

        A related Github Pull-Request [GH-519] was closed:
        https://github.com/doctrine/dbal/pull/519

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-519] was closed: https://github.com/doctrine/dbal/pull/519

          People

          • Assignee:
            Marco Pivetta
            Reporter:
            Doctrine Bot
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: