Skip to content

Commit

Permalink
Update server.go
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Mar 31, 2022
1 parent 9a4cfa0 commit 1664635
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dagger-server/internal/cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ func websocketReqMethod(c *gin.Context) {
if db.UserAclCheck(reqInfo.Username, reqInfo.Password) {
b := process(c, ws, reqInfo)
if b {
fmt.Println(reqInfo.Link, "done")
logger.Infof("process[%s][uc-done]:%d", reqInfo.Link, runtime.NumGoroutine())
break
}
} else {
info := fmt.Sprintf("user[%s]:password[%s] acl fail", reqInfo.Username, reqInfo.Password)
Expand All @@ -146,6 +147,7 @@ func websocketReqMethod(c *gin.Context) {
b := process(c, ws, reqInfo)
if b {
logger.Infof("process[%s][done]:%d", reqInfo.Link, runtime.NumGoroutine())
break
}
}
}
Expand Down

0 comments on commit 1664635

Please sign in to comment.