Logging, variable rearrangement

This commit is contained in:
obscuren
2014-06-26 11:26:42 +02:00
parent 39cb34850a
commit 0ed19d9f20
5 changed files with 23 additions and 26 deletions

View File

@ -340,7 +340,7 @@ func (s *Ethereum) Start(seed bool) {
// Bind to addr and port
ln, err := net.Listen("tcp", ":"+s.Port)
if err != nil {
log.Println("Connection listening disabled. Acting as client")
ethutil.Config.Log.Infof("port=%s in use. Connection listening disabled.")
s.listening = false
} else {
s.listening = true
@ -395,7 +395,7 @@ func (s *Ethereum) Seed() {
peers = append(peers, peer)
}
} else {
ethutil.Config.Log.Debugln("[SERV} Couldn't resolve :", target)
ethutil.Config.Log.Debugln("[SERV] Couldn't resolve :", target)
}
}
// Connect to Peer list