Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 37bbc93

Browse files
committed
替换 qiniu/log 为 logrus
Signed-off-by: solym <[email protected]>
1 parent e1f7e65 commit 37bbc93

File tree

7 files changed

+13
-8
lines changed

7 files changed

+13
-8
lines changed

broadcast.go

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

99
"github.com/glycerine/rbuf"
10-
"github.com/qiniu/log"
10+
11+
log "github.com/sirupsen/logrus"
1112
)
1213

1314
// The new broadcast

distributed.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ import (
1818
"github.com/bluele/gcache"
1919
"github.com/gorilla/mux"
2020
"github.com/gorilla/websocket"
21-
"github.com/qiniu/log"
21+
22+
log "github.com/sirupsen/logrus"
2223
)
2324

2425
type Cluster struct {

fsm.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@ import (
3131

3232
"github.com/axgle/pinyin"
3333
"github.com/kennygrant/sanitize"
34-
"github.com/lunny/dingtalk_webhook"
34+
dingtalk "github.com/lunny/dingtalk_webhook"
3535
"github.com/natefinch/lumberjack"
36-
"github.com/qiniu/log"
3736
"github.com/soopsio/gosuv/pushover"
3837
"github.com/soopsio/kexec"
38+
39+
log "github.com/sirupsen/logrus"
3940
)
4041

4142
type FSMState string

gosuv.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ import (
1212
"strings"
1313

1414
"github.com/imroc/req"
15-
"github.com/qiniu/log"
1615
"github.com/urfave/cli"
16+
17+
log "github.com/sirupsen/logrus"
1718
)
1819

1920
const appID = "app_8Gji4eEAdDx"

merge_write.go

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

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

1212
type Bool struct {

utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strings"
99
"time"
1010

11-
"github.com/qiniu/log"
11+
log "github.com/sirupsen/logrus"
1212
)
1313

1414
var ErrGoTimeout = errors.New("GoTimeoutFunc")

web.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ import (
2121
"github.com/go-yaml/yaml"
2222
"github.com/gorilla/mux"
2323
"github.com/gorilla/websocket"
24-
"github.com/qiniu/log"
2524
_ "github.com/shurcooL/vfsgen"
2625
"github.com/soopsio/gosuv/gops"
2726
"github.com/soopsio/kexec"
27+
28+
log "github.com/sirupsen/logrus"
2829
)
2930

3031
var defaultGosuvDir string

0 commit comments

Comments
 (0)