cmd/satellite: only add google profiler to satellite

Previously uplink, storagenode etc. included google cloud profiler,
however they don't need it.

Change-Id: Ibc95cb03d667a3844672eecd49fa455a6acc3866
This commit is contained in:
Egon Elbre 2020-09-25 17:47:42 +03:00 committed by Yaroslav
parent ff57b30bac
commit 888bfaae4b
5 changed files with 7 additions and 4 deletions

View File

@ -22,6 +22,7 @@ import (
"storj.io/common/uuid"
"storj.io/private/cfgstruct"
"storj.io/private/process"
_ "storj.io/private/process/googleprofiler" // This attaches google cloud profiler.
"storj.io/private/version"
"storj.io/storj/cmd/satellite/reports"
"storj.io/storj/pkg/cache"

View File

@ -135,7 +135,7 @@ func openLog(logPath string) error {
logPath = "winfile:///" + logPath
}
logger, err := process.NewLoggerWithOutputPaths(logPath)
logger, err := process.NewLoggerWithOutputPaths("storagenode-updater", logPath)
if err != nil {
return err
}

2
go.mod
View File

@ -45,6 +45,6 @@ require (
storj.io/common v0.0.0-20200904063801-15a4e772a2f2
storj.io/drpc v0.0.14
storj.io/monkit-jaeger v0.0.0-20200518165323-80778fc3f91b
storj.io/private v0.0.0-20200910221144-9fa0a1f43adf
storj.io/private v0.0.0-20200925142346-4c879709882f
storj.io/uplink v1.3.0
)

2
go.sum
View File

@ -738,5 +738,7 @@ storj.io/monkit-jaeger v0.0.0-20200518165323-80778fc3f91b h1:Bbg9JCtY6l3HrDxs3BX
storj.io/monkit-jaeger v0.0.0-20200518165323-80778fc3f91b/go.mod h1:gj4vuCeyCRjRmH8LIrgoyU9Dc9uR6H+/GcDUXmTbf80=
storj.io/private v0.0.0-20200910221144-9fa0a1f43adf h1:9uhMNZPhGzi7voHOUbEg5GG15gvR0NPlbpTtKerKNEQ=
storj.io/private v0.0.0-20200910221144-9fa0a1f43adf/go.mod h1:3BB0H9SmnJDfgk55uZli6DLHmhLiOdKiDY58ZI2e+pk=
storj.io/private v0.0.0-20200925142346-4c879709882f h1:0csZNWzYRhgBFp58rbBgqSp/62jtK2n0DIZ3Z/41Wso=
storj.io/private v0.0.0-20200925142346-4c879709882f/go.mod h1:3BB0H9SmnJDfgk55uZli6DLHmhLiOdKiDY58ZI2e+pk=
storj.io/uplink v1.3.0 h1:UzwqMXlSvHji3DHvFAWF1S4IDeYWt+hgD5iPsC5gqyw=
storj.io/uplink v1.3.0/go.mod h1:8GC+v/MBNdW8I++lroYSMvVPsruufHODY6FnnG5p3xw=

View File

@ -268,8 +268,8 @@ identity.key-path: /root/.local/share/storj/identity/satellite/identity.key
# if true, set logging to development mode
# log.development: false
# configures log encoding. can either be 'console' or 'json'
# log.encoding: console
# configures log encoding. can either be 'console', 'json', or 'pretty'.
# log.encoding: ""
# the minimum log level to log
# log.level: info