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:
parent
3a4c827f8e
commit
107df930f1
1 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue