relay: show version on startup

Since relay is a long-running process, I find myself in situations where I dont know which version of croc I have running.

This simple startup log will make it obvious.
This commit is contained in:
Maxim Baz 2020-04-09 17:44:19 +02:00
parent 9bf470ef29
commit c058bcbb6b
No known key found for this signature in database
GPG Key ID: 011FDC52DA839335
1 changed files with 1 additions and 0 deletions

View File

@ -380,6 +380,7 @@ func receive(c *cli.Context) (err error) {
}
func relay(c *cli.Context) (err error) {
log.Infof("starting croc relay version %v", Version)
debugString := "info"
if c.GlobalBool("debug") {
debugString = "debug"