Better logging

pull/14/merge
maru 4 months ago
parent fc458fad73
commit f8f5aefff9
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D

@ -18,8 +18,6 @@
package daily
import (
"log"
"github.com/pagefaultgames/rogueserver/db"
"github.com/pagefaultgames/rogueserver/defs"
)
@ -28,7 +26,7 @@ import (
func Rankings(category, page int) ([]defs.DailyRanking, error) {
rankings, err := db.FetchRankings(category, page)
if err != nil {
log.Print("failed to retrieve rankings")
return rankings, err
}
return rankings, nil

@ -18,8 +18,6 @@
package daily
import (
"log"
"github.com/pagefaultgames/rogueserver/db"
)
@ -27,7 +25,7 @@ import (
func RankingPageCount(category int) (int, error) {
pageCount, err := db.FetchRankingPageCount(category)
if err != nil {
log.Print("failed to retrieve ranking page count")
return pageCount, err
}
return pageCount, nil

Loading…
Cancel
Save