More log to search
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
package api
|
package api
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
|
|
||||||
"github.com/astaxie/beego"
|
"github.com/astaxie/beego"
|
||||||
"github.com/deluan/gosonic/api/responses"
|
"github.com/deluan/gosonic/api/responses"
|
||||||
"github.com/deluan/gosonic/engine"
|
"github.com/deluan/gosonic/engine"
|
||||||
@@ -38,6 +40,8 @@ func (c *SearchingController) Search2() {
|
|||||||
beego.Error("Error searching for MediaFiles:", err)
|
beego.Error("Error searching for MediaFiles:", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
beego.Debug(fmt.Sprintf("Searching for [%s] resulted in %d songs, %d albums and %d artists", query, len(mfs), len(als), len(as)))
|
||||||
|
|
||||||
response := c.NewEmpty()
|
response := c.NewEmpty()
|
||||||
searchResult2 := &responses.SearchResult2{}
|
searchResult2 := &responses.SearchResult2{}
|
||||||
searchResult2.Artist = make([]responses.Artist, len(as))
|
searchResult2.Artist = make([]responses.Artist, len(as))
|
||||||
|
|||||||
Reference in New Issue
Block a user