From e2790f75670e909f78b4a70aca39b9ec97536868 Mon Sep 17 00:00:00 2001 From: Keuin Date: Mon, 12 Sep 2022 12:11:40 +0800 Subject: Bugfix: wrong error logging. --- recording/runner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recording') diff --git a/recording/runner.go b/recording/runner.go index 3aa7d46..a2f2edc 100644 --- a/recording/runner.go +++ b/recording/runner.go @@ -114,7 +114,7 @@ func tryRunTask(t *RunningTask) error { cancelled = false } } - t.logger.Error("Error when copying live stream: %v", err) + t.logger.Error("Error when copying live stream: %v", err2) if err2 == nil || errors.Is(err2, bilibili.ErrRoomIsClosed) || errors.Is(err2, io.EOF) { t.logger.Info("Live is ended. Stop recording.") return bilibili.ErrRoomIsClosed -- cgit v1.2.3