summaryrefslogtreecommitdiff
path: root/recording
diff options
context:
space:
mode:
Diffstat (limited to 'recording')
-rw-r--r--recording/runner.go2
1 files changed, 1 insertions, 1 deletions
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