File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,11 @@ import (
1818)
1919
2020func init () {
21- customFormatter := new (log.TextFormatter )
22- customFormatter .TimestampFormat = "2006-01-02 15:04:05"
23- customFormatter .FullTimestamp = true
21+ customFormatter := & log.TextFormatter {
22+ TimestampFormat : "2006-01-02 15:04:05" ,
23+ FullTimestamp : true ,
24+ ForceColors : true ,
25+ }
2426 log .SetFormatter (customFormatter )
2527}
2628
Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ package bot
22
33import (
44 "fmt"
5- "github.com/Mrs4s/MiraiGo/utils"
65 "io/ioutil"
76 "time"
87
98 "github.com/Mrs4s/MiraiGo/client"
9+ "github.com/Mrs4s/MiraiGo/utils"
1010 "github.com/ProtobufBot/Go-Mirai-Client/pkg/util"
1111 "github.com/fanliao/go-promise"
1212 log "github.com/sirupsen/logrus"
You can’t perform that action at this time.
0 commit comments