diff options
author | Keuin <[email protected]> | 2022-09-10 18:28:19 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2022-09-10 18:28:19 +0800 |
commit | 73b2b41e777614d7c372b9d92a90b5fbb68d05c0 (patch) | |
tree | 39bf028dbe68347444dc25abdfd29d1cad7d2989 /bilibili/request_test.go | |
parent | 5664705557ad5e4a3bd1234b12e4054a1a9579c1 (diff) |
Replace all logger usages to custom logging.Logger.
Diffstat (limited to 'bilibili/request_test.go')
-rw-r--r-- | bilibili/request_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
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") |