mirror of https://github.com/docker/docs.git
Merge pull request #168 from jfrazelle/add-version-to-server-and-signer
add version to signer and server logs for debugging and issues
This commit is contained in:
commit
864c3f05c9
|
@ -23,6 +23,7 @@ import (
|
||||||
"github.com/docker/notary/server"
|
"github.com/docker/notary/server"
|
||||||
"github.com/docker/notary/server/storage"
|
"github.com/docker/notary/server/storage"
|
||||||
"github.com/docker/notary/signer"
|
"github.com/docker/notary/signer"
|
||||||
|
"github.com/docker/notary/version"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -49,6 +50,9 @@ func main() {
|
||||||
go debugServer(DebugAddress)
|
go debugServer(DebugAddress)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// when the server starts print the version for debugging and issue logs later
|
||||||
|
logrus.Infof("Version: %s, Git commit: %s", version.NotaryVersion, version.GitCommit)
|
||||||
|
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
filename := filepath.Base(configFile)
|
filename := filepath.Base(configFile)
|
||||||
|
|
|
@ -21,6 +21,7 @@ import (
|
||||||
"github.com/docker/notary/cryptoservice"
|
"github.com/docker/notary/cryptoservice"
|
||||||
"github.com/docker/notary/signer"
|
"github.com/docker/notary/signer"
|
||||||
"github.com/docker/notary/signer/api"
|
"github.com/docker/notary/signer/api"
|
||||||
|
"github.com/docker/notary/version"
|
||||||
"github.com/endophage/gotuf/data"
|
"github.com/endophage/gotuf/data"
|
||||||
_ "github.com/go-sql-driver/mysql"
|
_ "github.com/go-sql-driver/mysql"
|
||||||
"github.com/miekg/pkcs11"
|
"github.com/miekg/pkcs11"
|
||||||
|
@ -72,6 +73,9 @@ func main() {
|
||||||
go debugServer(debugAddr)
|
go debugServer(debugAddr)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// when the signer starts print the version for debugging and issue logs later
|
||||||
|
logrus.Infof("Version: %s, Git commit: %s", version.NotaryVersion, version.GitCommit)
|
||||||
|
|
||||||
filename := filepath.Base(configFile)
|
filename := filepath.Base(configFile)
|
||||||
ext := filepath.Ext(configFile)
|
ext := filepath.Ext(configFile)
|
||||||
configPath := filepath.Dir(configFile)
|
configPath := filepath.Dir(configFile)
|
||||||
|
|
Loading…
Reference in New Issue