Skip to content

refactor(repo-updater): migrate Syncer to use lib/log

Administrator requested to merge wbezuide/log-update-repoupdater-syncer into main

Created by: burmudar

  • removed usage of module log15
  • removed log() and discardLogger which was used when the logger was nil. Logger is only nil when Syncer is created in tests as per this search

Part of #34607 (closed)

Test plan

Unit Tests

$ go run ./cmd/repo-updater/...
?   	github.com/sourcegraph/sourcegraph/cmd/repo-updater	[no test files]
ok  	github.com/sourcegraph/sourcegraph/cmd/repo-updater/repoupdater	(cached)
ok  	github.com/sourcegraph/sourcegraph/cmd/repo-updater/shared	(cached)

$ go run ./internal/repoupdater/...
ok  	github.com/sourcegraph/sourcegraph/internal/repoupdater	(cached)
?   	github.com/sourcegraph/sourcegraph/internal/repoupdater/protocol	[no test files]

Merge request reports

Loading