From 73b2b41e777614d7c372b9d92a90b5fbb68d05c0 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 10 Sep 2022 18:28:19 +0800 Subject: Replace all logger usages to custom logging.Logger. --- bilibili/request_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bilibili/request_test.go') diff --git a/bilibili/request_test.go b/bilibili/request_test.go index 68e5c7a..58b7127 100644 --- a/bilibili/request_test.go +++ b/bilibili/request_test.go @@ -1,12 +1,14 @@ package bilibili import ( + "bilibili-livestream-archiver/logging" + "log" "testing" ) func Test_callGet(t *testing.T) { // an always-fail request should not panic - bi := NewBilibili() + bi := NewBilibili(logging.NewWrappedLogger(log.Default(), "main")) _, err := callGet[BaseResponse[struct{}]](bi, "https://256.256.256.256") if err == nil { t.Fatalf("the artificial request should fail, but it haven't") -- cgit v1.2.3