Skip to content

Commit

Permalink
Small fix of logger's message
Browse files Browse the repository at this point in the history
  • Loading branch information
vqhuy committed Dec 24, 2017
1 parent e3fb0a9 commit 711a0ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions application/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ func (server *ConiksServer) Run(addrs []*Address) {
for i := 0; i < len(addrs); i++ {
addr := addrs[i]
hasRegistrationPerm = hasRegistrationPerm || addr.AllowRegistration
server.Verb = "Listening"
if addr.AllowRegistration {
server.Verb = "Accepting registrations"
}
Expand Down
3 changes: 2 additions & 1 deletion application/serverbase.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,11 @@ func NewServerBase(conf *ServerBaseConfig, listenVerb string,
// SIGUSR2 signal.
func (sb *ServerBase) ListenAndHandle(addr *ServerAddress,
reqHandler func(req *protocol.Request) *protocol.Response) {
sb.logger.Info(sb.Verb, "address", addr.Address)

ln, tlsConfig := addr.resolveAndListen()
sb.waitStop.Add(1)
go func() {
sb.logger.Info(sb.Verb, "address", addr.Address)
sb.acceptRequests(addr, ln, tlsConfig, reqHandler)
sb.waitStop.Done()
}()
Expand Down

0 comments on commit 711a0ca

Please sign in to comment.