Skip to content

Conversation

@torcolvin
Copy link
Collaborator

Remove goutils logger

This is just a proposal. I can see the benefit of leaving this in if cbgt decides to use this for something else. However, they have their own logging utility so this seems unlikely.

I believe this was used only from go-couchbase. This drops a direct dependency to an indirect dependency from cbgt only. It is used by cbgt to access cbauth which Sync Gateway is never going to use. https://github.com/couchbase/cbgt/blob/74dbd1c34db313c2b65a65f6e3cecca7eacb00b3/cbauth.go#L24 / https://github.com/couchbase/cbauth

Inspired from #7881

@torcolvin torcolvin requested a review from bbrks November 17, 2025 14:18
Copilot AI review requested due to automatic review settings November 17, 2025 14:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes the direct dependency on github.com/couchbase/goutils by eliminating the CBGoUtilsLogger implementation, converting it from a direct to an indirect dependency (still used by cbgt for cbauth). The change simplifies Sync Gateway's logging infrastructure by removing an unused external logger adapter.

Key Changes

  • Removed direct dependency on goutils from go.mod (moved to indirect dependencies)
  • Eliminated the CBGoUtilsLogger implementation and its initialization from base/logger_external.go
  • Removed unused imports (fmt, os, and goutils/logging) from the logger file

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
go.mod Moved goutils from direct to indirect dependency
base/logger_external.go Removed CBGoUtilsLogger implementation and cleaned up unused imports

Copy link
Member

@bbrks bbrks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 agree with all of this

@bbrks bbrks merged commit 858e8cd into main Nov 19, 2025
25 checks passed
@bbrks bbrks deleted the remove-goutils branch November 19, 2025 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants