Skip to content

Commit

Permalink
add version to signer and server logs for debugging and issues
Browse files Browse the repository at this point in the history
Signed-off-by: Jessica Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Jul 31, 2015
1 parent 1c4d74e commit 95cdfbe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/notary-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/docker/notary/server"
"github.com/docker/notary/server/storage"
"github.com/docker/notary/signer"
"github.com/docker/notary/version"
"github.com/spf13/viper"
)

Expand All @@ -49,6 +50,9 @@ func main() {
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()

filename := filepath.Base(configFile)
Expand Down
4 changes: 4 additions & 0 deletions cmd/notary-signer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"github.com/docker/notary/cryptoservice"
"github.com/docker/notary/signer"
"github.com/docker/notary/signer/api"
"github.com/docker/notary/version"
"github.com/endophage/gotuf/data"
_ "github.com/go-sql-driver/mysql"
"github.com/miekg/pkcs11"
Expand Down Expand Up @@ -72,6 +73,9 @@ func main() {
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)
ext := filepath.Ext(configFile)
configPath := filepath.Dir(configFile)
Expand Down

0 comments on commit 95cdfbe

Please sign in to comment.