Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-1435

Logging of N1QL should include the N1QL text

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.4.7
    • 2.4.5
    • library
    • Windows 10 / Couchbase Server 5.0 beta

    Description

      Summary: It would be nice if logging included N1QL text / parameters / etc. Currently, assuming I'm doing it correctly, I only see text like "Sending query cid1::2: http://127.0.0.1:8093/query" in the log message.

      Repro:

      1. Enable logging in .NET app (e.g. https://developer.couchbase.com/documentation/server/4.5/sdk/dotnet/collecting-information-and-logging.html)
      2. Execute N1QL query through .NET SDK (e.g. var query = QueryRequest.Create("SELECT b.foo, b.bar FROM `" + _bucket.Name + "` b");
        var results = _bucket.Query<FooBar>(query).Rows
      3. View log file that was setup in step 1

      Expected:

      At least "SELECT b.foo. b.bar FROM `mybucket` b" somewhere in the message. Maybe also the scan consistency, parameters, and so on.

      Actual:

      All I'm seeing at "DEBUG" level is:

      2017-06-01 16:09:32,100 [33] DEBUG Couchbase.N1QL.QueryClient - Sending query cid1::2: http://127.0.0.1:8093/query

      2017-06-01 16:09:32,134 [47] DEBUG Couchbase.N1QL.QueryClient - Received query cid1::2: ClientContextId: 1::2Message:

      I should note that Linq2Couchbase does output the query text in the logs, so maybe this was a design decision?

      Attachments

        For Gerrit Dashboard: NCBC-1435
        # Subject Branch Project Status CR V

        Activity

          People

            jmorris Jeff Morris
            matthew.groves Matthew Groves
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty