Skip to content

Commit

Permalink
🎨 더 이쁜 출력
Browse files Browse the repository at this point in the history
  • Loading branch information
aroxu committed May 29, 2023
1 parent 950f291 commit 9d94b21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ require (
require (
github.com/mattn/go-isatty v0.0.16 // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/text v0.9.0
)
11 changes: 5 additions & 6 deletions webconsole/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ import (
)

var (
Server *http.Server
h *WebSocketHandler // WebSocketHandler 인스턴스를 전역 변수로 변경
cmdStopped = make(chan bool) // command 실행 중지 신호를 전달하는 채널
Server *http.Server
h *WebSocketHandler // WebSocketHandler 인스턴스를 전역 변수로 변경
)

var upgrader = websocket.Upgrader{
Expand Down Expand Up @@ -148,9 +147,9 @@ func HandleWebSocket(w http.ResponseWriter, r *http.Request) {
}

func StartWebsocket() {
logger.Debug("=========================")
logger.Debug("Websocket Server Started!")
logger.Debug("=========================")
logger.Info("+----------------------------+")
logger.Info("| WebConsole Server Started! |")
logger.Info("+----------------------------+")
if h != nil {
logger.Debug(fmt.Sprintf("Restoring Previous Connection: %+v", &h.connectChan))
}
Expand Down

0 comments on commit 9d94b21

Please sign in to comment.