sourcegraph/cmd/migrator/main.go
William Bezuidenhout 1ae6cc6bfd
logger: update log lib and remove use of description (#57690)
* log: remove use of description paramter in Scoped

* temporarily point to sglog branch

* bazel configure + gazelle

* remove additional use of description param

* use latest versions of zoekt,log,mountinfo

* go.mod
2023-10-18 17:29:08 +02:00

27 lines
683 B
Go

package main
import (
"github.com/sourcegraph/log"
"github.com/sourcegraph/sourcegraph/cmd/migrator/shared"
"github.com/sourcegraph/sourcegraph/internal/env"
"github.com/sourcegraph/sourcegraph/internal/oobmigration/migrations/register"
"github.com/sourcegraph/sourcegraph/internal/sanitycheck"
"github.com/sourcegraph/sourcegraph/internal/version"
)
func main() {
sanitycheck.Pass()
liblog := log.Init(log.Resource{
Name: env.MyName,
Version: version.Version(),
})
defer liblog.Sync()
logger := log.Scoped("migrator")
if err := shared.Start(logger, register.RegisterEnterpriseMigratorsUsingConfAndStoreFactory); err != nil {
logger.Fatal(err.Error())
}
}