Uploaded image for project: 'Couchbase Gateway'
  1. Couchbase Gateway
  2. CBG-321

Improve sg-replicate logging integration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.6.0
    • Component/s: SyncGateway
    • Security Level: Public
    • Labels:
      None
    • Sprint:
      CBG Sprint 20, CBG Sprint 21
    • Story Points:
      8

      Description

      Need to address two issues related to logging generated by sg-replicate:

      1. We don't have a way to enable debug logging via Sync Gateway's config.  At minimum we want the ability to call EnableSgReplicateLogging if the "Replicate" log key is enabled with log level debug or trace.
      2. Error/warn logging within sg-replicate isn't sent to Sync Gateway's logs. 

      The second issue may require enhancing sg-replicate to accept Sync Gateway's logging interface, instead of using clog.  Needs further analysis to identify the right approach.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

          Hide
          build-team Couchbase Build Team added a comment -

          Build sync_gateway-2.6.0-38 contains sg-replicate commit d73786b with commit message:
          CBG-321: Create one logging function and external logger support (#63)

          Show
          build-team Couchbase Build Team added a comment - Build sync_gateway-2.6.0-38 contains sg-replicate commit d73786b with commit message: CBG-321 : Create one logging function and external logger support (#63)
          Hide
          build-team Couchbase Build Team added a comment -

          Build sync_gateway-2.6.0-38 contains sg-replicate commit d73786b with commit message:
          CBG-321: Create one logging function and external logger support (#63)

          Show
          build-team Couchbase Build Team added a comment - Build sync_gateway-2.6.0-38 contains sg-replicate commit d73786b with commit message: CBG-321 : Create one logging function and external logger support (#63)
          Hide
          build-team Couchbase Build Team added a comment -

          Build sync_gateway-2.6.0-38 contains sync_gateway commit 75950d1 with commit message:
          CBG-321: Added sg-replicate logging (#4094)

          Show
          build-team Couchbase Build Team added a comment - Build sync_gateway-2.6.0-38 contains sync_gateway commit 75950d1 with commit message: CBG-321 : Added sg-replicate logging (#4094)
          Hide
          build-team Couchbase Build Team added a comment -

          Build sync_gateway-2.6.0-38 contains sync_gateway commit 75950d1 with commit message:
          CBG-321: Added sg-replicate logging (#4094)

          Show
          build-team Couchbase Build Team added a comment - Build sync_gateway-2.6.0-38 contains sync_gateway commit 75950d1 with commit message: CBG-321 : Added sg-replicate logging (#4094)

            People

            Assignee:
            jacques.rascagneres Jacques Rascagneres
            Reporter:
            adamf Adam Fraser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty