2019-08-30 10:02:36 +01:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
2021-12-09 19:49:48 +00:00
|
|
|
//go:build !windows
|
2020-04-01 12:59:34 +01:00
|
|
|
// +build !windows
|
2019-10-31 12:27:53 +00:00
|
|
|
|
2020-04-01 12:59:34 +01:00
|
|
|
package main
|
2019-09-05 22:10:05 +01:00
|
|
|
|
2022-04-11 04:40:46 +01:00
|
|
|
import (
|
|
|
|
"go.uber.org/zap"
|
|
|
|
|
|
|
|
"storj.io/private/process"
|
|
|
|
)
|
2019-11-15 14:37:29 +00:00
|
|
|
|
|
|
|
func main() {
|
2022-04-11 04:40:46 +01:00
|
|
|
loggerFunc := func(logger *zap.Logger) *zap.Logger {
|
|
|
|
return logger.With(zap.String("Process", updaterServiceName))
|
|
|
|
}
|
|
|
|
|
|
|
|
process.ExecWithCustomConfigAndLogger(rootCmd, true, process.LoadConfig, loggerFunc)
|
2019-11-15 14:37:29 +00:00
|
|
|
}
|