mirror of https://github.com/Xhofe/alist
fix: log error if err != nil (close #1651)
parent
6aedd0f425
commit
78e34f0d9f
|
@ -8,6 +8,8 @@ import (
|
|||
func InitAria2() {
|
||||
go func() {
|
||||
_, err := aria2.InitClient(2)
|
||||
utils.Log.Errorf("failed to init aria2 client: %+v", err)
|
||||
if err != nil {
|
||||
utils.Log.Errorf("failed to init aria2 client: %+v", err)
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue