storj/cmd/storagenode-updater/main.go

22 lines
418 B
Go
Raw Normal View History

// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
//go:build !windows
// +build !windows
package main
import (
"go.uber.org/zap"
"storj.io/private/process"
)
func main() {
loggerFunc := func(logger *zap.Logger) *zap.Logger {
return logger.With(zap.String("Process", updaterServiceName))
}
process.ExecWithCustomConfigAndLogger(rootCmd, true, process.LoadConfig, loggerFunc)
}