summaryrefslogtreecommitdiff
path: root/recording
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-09-12 12:11:40 +0800
committerKeuin <[email protected]>2022-09-12 12:11:40 +0800
commite2790f75670e909f78b4a70aca39b9ec97536868 (patch)
tree491469561942dc383b14a2110e62080dc346c616 /recording
parent2b1e0dbeab6227f67e2ced780f325938202d51c3 (diff)
Bugfix: wrong error logging.
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