Better logging

pull/14/merge
maru 6 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 package daily
import ( import (
"log"
"github.com/pagefaultgames/rogueserver/db" "github.com/pagefaultgames/rogueserver/db"
"github.com/pagefaultgames/rogueserver/defs" "github.com/pagefaultgames/rogueserver/defs"
) )
@ -28,7 +26,7 @@ import (
func Rankings(category, page int) ([]defs.DailyRanking, error) { func Rankings(category, page int) ([]defs.DailyRanking, error) {
rankings, err := db.FetchRankings(category, page) rankings, err := db.FetchRankings(category, page)
if err != nil { if err != nil {
log.Print("failed to retrieve rankings") return rankings, err
} }
return rankings, nil return rankings, nil

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

Loading…
Cancel
Save