Skip to content

Commit ef79e3f

Browse files
committed
更新日志组件
1 parent 2149d8e commit ef79e3f

21 files changed

+27
-46
lines changed

db/cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"github.com/rroy233/StickerDownloader/config"
99
"github.com/rroy233/StickerDownloader/statistics"
1010
"github.com/rroy233/StickerDownloader/utils"
11-
"github.com/rroy233/logger"
11+
"gopkg.in/rroy233/logger.v2"
1212
"os"
1313
"strings"
1414
"time"

db/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"github.com/go-redis/redis/v8"
77
"github.com/rroy233/StickerDownloader/config"
88
"github.com/rroy233/StickerDownloader/languages"
9-
"github.com/rroy233/logger"
9+
"gopkg.in/rroy233/logger.v2"
1010
)
1111

1212
// var db *sqlx.DB

go.mod

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ require (
1616
github.com/andres-erbsen/clock v0.0.0-20160526145045-9e14626cd129 // indirect
1717
github.com/cespare/xxhash/v2 v2.2.0 // indirect
1818
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
19-
github.com/sirupsen/logrus v1.9.0 // indirect
20-
golang.org/x/sys v0.4.0 // indirect
19+
github.com/sirupsen/logrus v1.9.3 // indirect
20+
golang.org/x/sys v0.10.0 // indirect
21+
gopkg.in/rroy233/logger.v2 v2.0.1 // indirect
2122
)

go.sum

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ github.com/rroy233/logger v1.1.2 h1:VpRVCf50qnwtZsSWJxDFE+iiBvuYN6zla6jher9sAeI=
2525
github.com/rroy233/logger v1.1.2/go.mod h1:0CJ4dfE/+wGffshyYFFVm20lUu1pigic/gcsCe/SfFY=
2626
github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0=
2727
github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
28+
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
29+
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
2830
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
2931
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
3032
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
@@ -38,9 +40,13 @@ golang.org/x/net v0.0.0-20210428140749-89ef3d95e781 h1:DzZ89McO9/gWPsQXS/FVKAlG0
3840
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
3941
golang.org/x/sys v0.4.0 h1:Zr2JFtRQNX3BCZ8YtxRE9hNJYC8J6I1MVbMg6owUp18=
4042
golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
43+
golang.org/x/sys v0.10.0 h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA=
44+
golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
4145
golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
4246
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
4347
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
48+
gopkg.in/rroy233/logger.v2 v2.0.1 h1:BmiKTwwxjwUj+ZSrbpBo4i46Fo89Jj/fMEGNSOi53xw=
49+
gopkg.in/rroy233/logger.v2 v2.0.1/go.mod h1:N7PuXYxiRrZr9MT2GzMYoEuFQCZyH+AA+Ov0nPBB7r4=
4450
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
4551
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
4652
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

handler/AddStickerUrlMessage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"github.com/rroy233/StickerDownloader/config"
77
"github.com/rroy233/StickerDownloader/languages"
88
"github.com/rroy233/StickerDownloader/utils"
9-
"github.com/rroy233/logger"
9+
"gopkg.in/rroy233/logger.v2"
1010
)
1111

1212
var addStickersUrlPrefix = "https://t.me/addstickers/"

handler/AnimationMessage.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/rroy233/StickerDownloader/config"
88
"github.com/rroy233/StickerDownloader/languages"
99
"github.com/rroy233/StickerDownloader/utils"
10-
"github.com/rroy233/logger"
10+
"gopkg.in/rroy233/logger.v2"
1111
"time"
1212
)
1313

@@ -87,6 +87,5 @@ func AnimationMessage(update tgbotapi.Update) {
8787
logger.Error.Println(userInfo+"failed to delete msg:", err)
8888
}
8989

90-
utils.RemoveFile(outPath)
9190
return
9291
}

handler/AutoLeave.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package handler
33
import (
44
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
55
"github.com/rroy233/StickerDownloader/utils"
6-
"github.com/rroy233/logger"
6+
"gopkg.in/rroy233/logger.v2"
77
)
88

99
func AutoLeave(update tgbotapi.Update) {

handler/DownloadStickerSetQuery.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/rroy233/StickerDownloader/languages"
1010
"github.com/rroy233/StickerDownloader/statistics"
1111
"github.com/rroy233/StickerDownloader/utils"
12-
"github.com/rroy233/logger"
12+
"gopkg.in/rroy233/logger.v2"
1313
"os"
1414
"sync/atomic"
1515
"time"

handler/QuitQueueQuery.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"github.com/rroy233/StickerDownloader/db"
66
"github.com/rroy233/StickerDownloader/languages"
77
"github.com/rroy233/StickerDownloader/utils"
8-
"github.com/rroy233/logger"
8+
"gopkg.in/rroy233/logger.v2"
99
)
1010

1111
func QuitQueueQuery(update tgbotapi.Update) {

handler/StickersMessage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/rroy233/StickerDownloader/languages"
1010
"github.com/rroy233/StickerDownloader/statistics"
1111
"github.com/rroy233/StickerDownloader/utils"
12-
"github.com/rroy233/logger"
12+
"gopkg.in/rroy233/logger.v2"
1313
"time"
1414
)
1515

0 commit comments

Comments
 (0)