diff options
author | Keuin <[email protected]> | 2022-09-12 12:11:40 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2022-09-12 12:11:40 +0800 |
commit | e2790f75670e909f78b4a70aca39b9ec97536868 (patch) | |
tree | 491469561942dc383b14a2110e62080dc346c616 | |
parent | 2b1e0dbeab6227f67e2ced780f325938202d51c3 (diff) |
Bugfix: wrong error logging.
-rw-r--r-- | go.mod | 2 | ||||
-rw-r--r-- | recording/runner.go | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -6,6 +6,7 @@ require ( github.com/akamensky/argparse v1.4.0 github.com/andybalholm/brotli v1.0.4 github.com/lunixbochs/struc v0.0.0-20200707160740-784aaebc1d40 + github.com/mitchellh/mapstructure v1.5.0 github.com/spf13/viper v1.13.0 golang.org/x/exp v0.0.0-20220907003533-145caa8ea1d0 nhooyr.io/websocket v1.8.7 @@ -16,7 +17,6 @@ require ( github.com/hashicorp/hcl v1.0.0 // indirect github.com/klauspost/compress v1.10.3 // indirect github.com/magiconair/properties v1.8.6 // indirect - github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/pelletier/go-toml v1.9.5 // indirect github.com/pelletier/go-toml/v2 v2.0.5 // indirect github.com/spf13/afero v1.8.2 // indirect 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 |