added log
This commit is contained in:
parent
1ba1c690ff
commit
c8ac178bea
@ -505,11 +505,15 @@ type Commands struct {
|
|||||||
func (con Connection) AttachServer(ctx *gin.Context) {
|
func (con Connection) AttachServer(ctx *gin.Context) {
|
||||||
serverId := ctx.Param("server_id")
|
serverId := ctx.Param("server_id")
|
||||||
stop := false
|
stop := false
|
||||||
|
var err error
|
||||||
|
|
||||||
websocketRead := make(chan Commands)
|
websocketRead := make(chan Commands)
|
||||||
containerRead := make(chan string)
|
containerRead := make(chan string)
|
||||||
|
|
||||||
defer func() {
|
defer func() {
|
||||||
|
if err != nil {
|
||||||
|
log.Printf("The latest error is %s", err)
|
||||||
|
}
|
||||||
close(websocketRead)
|
close(websocketRead)
|
||||||
close(containerRead)
|
close(containerRead)
|
||||||
}()
|
}()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user