Skip to content

Commit

Permalink
should exit when xmlrpc failed listen.
Browse files Browse the repository at this point in the history
  • Loading branch information
rev1si0n authored Jan 5, 2019
1 parent e703d08 commit 563a8b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmlrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (p *XmlRPC) startHttpServer(user string, password string, protocol string,
p.listeners[protocol] = listener
http.Serve(listener, mux)
} else {
log.WithFields(log.Fields{"addr": listenAddr, "protocol": protocol}).Error("fail to listen on address")
log.WithFields(log.Fields{"addr": listenAddr, "protocol": protocol}).Fatal("fail to listen on address")
}

}
Expand Down

0 comments on commit 563a8b3

Please sign in to comment.