1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-api-healthcheck synced 2026-06-18 05:00:03 +02:00

src/main.go: log tcp server address

This commit is contained in:
Henrik Hautakoski 2022-01-03 17:13:44 +01:00
parent 3a4c827f8e
commit 107df930f1
No known key found for this signature in database
GPG key ID: 608414D93E862CCD

View file

@ -109,6 +109,7 @@ func signalEventLoop() {
func main() {
var version bool
var addr string;
// Command line parsing
getopt.FlagLong(&version, "version", 'v', "Print version")
@ -139,6 +140,10 @@ func main() {
// Run the signal event loop.
signalEventLoop()
addr = argv_listen_addr()
log.Info("Listening on: %s", addr)
// Start listening to TCP Connections
spawnTcpServer(argv_listen_addr());
spawnTcpServer(addr);
}