Skip to content

Commit

Permalink
log pid when start new process failed
Browse files Browse the repository at this point in the history
  • Loading branch information
tabalt committed Dec 17, 2016
1 parent 2f325f4 commit 704fa33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func (this *Server) handleSignals() {

err := this.startNewProcess()
if err != nil {
this.logf("start new process failed: %v, pid %d continue serve.", err)
this.logf("start new process failed: %v, pid %d continue serve.", err, pid)
} else {
// 关闭老进程的连接
this.listener.(*Listener).Close()
Expand Down

0 comments on commit 704fa33

Please sign in to comment.