add version output to log

This commit is contained in:
Shelikhoo 2022-11-22 15:21:30 +00:00
parent 33248f3dec
commit 4ebd85e5d1
No known key found for this signature in database
GPG key ID: C4D5E79D22B25316
3 changed files with 6 additions and 0 deletions

View file

@ -203,6 +203,8 @@ func main() {
log.SetOutput(&safelog.LogScrubber{Output: logOutput})
}
log.Printf("snowflake-client %s\n", version.GetVersion())
iceAddresses := strings.Split(strings.TrimSpace(*iceServersCommas), ",")
config := sf.ClientConfig{

View file

@ -117,6 +117,8 @@ func main() {
periodicEventLogger := sf.NewProxyEventLogger(*SummaryInterval, eventlogOutput)
eventLogger.AddSnowflakeEventListener(periodicEventLogger)
log.Printf("snowflake-proxy %s\n", version.GetVersion())
err := proxy.Start()
if err != nil {
log.Fatal(err)

View file

@ -165,6 +165,8 @@ func main() {
log.SetOutput(&safelog.LogScrubber{Output: logOutput})
}
log.Printf("snowflake-server %s\n", version.GetVersion())
if !disableTLS && acmeHostnamesCommas == "" {
log.Fatal("the --acme-hostnames option is required")
}