Skip to content

Commit fa2cbb0

Browse files
committed
lib(lib): Update dep lib logrus
1 parent 5954f07 commit fa2cbb0

File tree

7 files changed

+13
-10
lines changed

7 files changed

+13
-10
lines changed

echoo.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import (
88
"github.com/AielloChan/echoo/asset"
99
"github.com/AielloChan/echoo/config"
1010
"github.com/AielloChan/echoo/modes"
11-
"github.com/Sirupsen/logrus"
11+
12+
"github.com/sirupsen/logrus"
1213
)
1314

1415
// 主函数

libs/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"strings"
1212
"time"
1313

14-
"github.com/Sirupsen/logrus"
14+
"github.com/sirupsen/logrus"
1515
)
1616

1717
var (

modes/echoMode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"html/template"
55
"net/http"
66

7-
"github.com/Sirupsen/logrus"
7+
"github.com/sirupsen/logrus"
88
)
99

1010
// echoModeHandler 负责处理 echo 模式的业务

modes/fileMode.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import (
77

88
"github.com/AielloChan/echoo/config"
99
"github.com/AielloChan/echoo/libs"
10-
"github.com/Sirupsen/logrus"
10+
11+
"github.com/sirupsen/logrus"
1112
)
1213

1314
// fileModeHandler 输出为文件的模式

modes/index.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import (
99
"time"
1010

1111
"github.com/AielloChan/echoo/libs"
12-
"github.com/Sirupsen/logrus"
12+
13+
"github.com/sirupsen/logrus"
1314
"golang.org/x/net/websocket"
1415
)
1516

@@ -50,7 +51,7 @@ func RunWithMode(mode string, host string, port int, file string) {
5051
processQueue = append(processQueue, wsModeHandler)
5152
openWS = true
5253
default:
53-
logrus.Fatal("Try run 'echoX -h'")
54+
logrus.Fatal("Try run 'echoo -h'")
5455
}
5556

5657
startAPISer(hostURL, dispatcher, openWS)

modes/terminalMode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"net/http"
77
"os"
88

9-
"github.com/Sirupsen/logrus"
9+
"github.com/sirupsen/logrus"
1010
)
1111

1212
// terminalModeHandler 控制台输出模式

modes/wsMode.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import (
77

88
"github.com/AielloChan/echoo/config"
99
"github.com/AielloChan/echoo/libs"
10-
"github.com/Sirupsen/logrus"
10+
11+
"github.com/sirupsen/logrus"
1112

1213
uuid "github.com/satori/go.uuid"
1314
"golang.org/x/net/websocket"
@@ -127,8 +128,7 @@ func wsModeHandler(w http.ResponseWriter, r *http.Request) {
127128
func newUser(targetHost string, targetPostfix string) (
128129
tarUUID string, redirectURL string) {
129130
// 生成 uuid 并返回 uuid 和 跳转链接
130-
curUUID, err := uuid.NewV4()
131-
logrus.Error("Create uuid failed: ", err)
131+
curUUID := uuid.NewV4()
132132
return curUUID.String(), targetHost + "/" + curUUID.String() + "/" + targetPostfix
133133
}
134134

0 commit comments

Comments
 (0)