0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02: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) { func relay(c *cli.Context) (err error) {
log.Infof("starting croc relay version %v", Version)
debugString := "info" debugString := "info"
if c.GlobalBool("debug") { if c.GlobalBool("debug") {
debugString = "debug" debugString = "debug"