1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-24 08:02:33 +03:00

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

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"