Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed May 4, 2022
1 parent 4e7e594 commit 38c70a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 0 additions & 7 deletions dagger-server/internal/cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,6 @@ var upGrader = websocket.Upgrader{
},
}

type SendInfo struct {
Link string `json:"link"`
Username string `json:"username"`
Password string `json:"password"`
RequestTime string `json:"request_time"`
}

func process(c *gin.Context, ws *websocket.Conn, link string) bool {

dst, err := net.Dial("tcp", link)
Expand Down
3 changes: 3 additions & 0 deletions dagger-server/internal/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package log

import (
"fmt"
"os"
"strings"

"github.com/midoks/dagger/dagger-server/internal/conf"
Expand All @@ -23,6 +24,8 @@ func Init() {
}

logPath := fmt.Sprintf("%s", conf.Log.RootPath)

os.MkdirAll(logPath, os.ModePerm)
fileConfig := &go_logger.FileConfig{
Filename: fmt.Sprintf("%s/%s", logPath, logFileName),
LevelFileName: map[int]string{
Expand Down

0 comments on commit 38c70a3

Please sign in to comment.