mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-02-22 08:31:30 +08:00
Better logging
This commit is contained in:
parent
fc458fad73
commit
f8f5aefff9
@ -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…
x
Reference in New Issue
Block a user