diff options
author | obscuren <geffobscura@gmail.com> | 2014-12-24 18:31:45 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-12-24 18:31:45 +0800 |
commit | 804af9658a89555d6b4069433676acdb6deb9742 (patch) | |
tree | 89d7846d715ea225229489428e26c1bad2435dc9 /cmd/utils | |
parent | fb1edd05f40bad04f2514d1463b5593dc51e9f77 (diff) | |
parent | 9d429180f995f61e3448f9e0ffce713434590055 (diff) | |
download | dexon-804af9658a89555d6b4069433676acdb6deb9742.tar.gz dexon-804af9658a89555d6b4069433676acdb6deb9742.tar.zst dexon-804af9658a89555d6b4069433676acdb6deb9742.zip |
merge
Diffstat (limited to 'cmd/utils')
-rw-r--r-- | cmd/utils/websockets.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/utils/websockets.go b/cmd/utils/websockets.go index 29f9b8aeb..e4bc1b185 100644 --- a/cmd/utils/websockets.go +++ b/cmd/utils/websockets.go @@ -3,10 +3,13 @@ package utils import ( "github.com/ethereum/go-ethereum/eth" "github.com/ethereum/go-ethereum/ethutil" + "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/websocket" "github.com/ethereum/go-ethereum/xeth" ) +var wslogger = logger.NewLogger("WS") + func args(v ...interface{}) []interface{} { return v } @@ -106,6 +109,8 @@ func (self *WebSocketServer) Serv() { } func StartWebSockets(eth *eth.Ethereum) { + wslogger.Infoln("Starting WebSockets") + sock := NewWebSocketServer(eth) go sock.Serv() } |