[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [pluggable-transports/snowflake] 02/02: add version output to log
This is an automated email from the git hooks/post-receive script.
shelikhoo pushed a commit to branch main
in repository pluggable-transports/snowflake.
commit 4ebd85e5d181182a5a3c1e61bdef8abaa92afee0
Author: Shelikhoo <xiaokangwang@xxxxxxxxxxx>
AuthorDate: Tue Nov 22 15:21:30 2022 +0000
add version output to log
---
client/snowflake.go | 2 ++
proxy/main.go | 2 ++
server/server.go | 2 ++
3 files changed, 6 insertions(+)
diff --git a/client/snowflake.go b/client/snowflake.go
index e4344e4..7568c4e 100644
--- a/client/snowflake.go
+++ b/client/snowflake.go
@@ -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{
diff --git a/proxy/main.go b/proxy/main.go
index 2218609..67274c7 100644
--- a/proxy/main.go
+++ b/proxy/main.go
@@ -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)
diff --git a/server/server.go b/server/server.go
index 8b6c7a5..ed1e876 100644
--- a/server/server.go
+++ b/server/server.go
@@ -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")
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits