From 0a191210be8c778eb88a6865afaa275948eb6548 Mon Sep 17 00:00:00 2001 From: DblK Date: Tue, 28 Dec 2021 18:08:15 +0100 Subject: [PATCH] feat: Add more debug logs --- sources/directory/private.go | 3 +++ sources/nfs/private.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/sources/directory/private.go b/sources/directory/private.go index 4c0eeba..2665b62 100644 --- a/sources/directory/private.go +++ b/sources/directory/private.go @@ -108,6 +108,9 @@ func loadGamesDirectory(directory string) error { func nspCheck(file repository.FileDesc) (bool, error) { key, err := collection.GetKey(file.GameID) if err != nil { + if config.GetConfig().DebugTicket() && err.Error() == "TitleDBKey for game "+file.GameID+" is not found" { + log.Println(err) + } return false, err } diff --git a/sources/nfs/private.go b/sources/nfs/private.go index 3101ed6..43c4476 100644 --- a/sources/nfs/private.go +++ b/sources/nfs/private.go @@ -145,6 +145,9 @@ func computePath(path string, dir *nfs.EntryPlus) string { func nspCheck(file repository.FileDesc) (bool, error) { key, err := collection.GetKey(file.GameID) if err != nil { + if config.GetConfig().DebugTicket() && err.Error() == "TitleDBKey for game "+file.GameID+" is not found" { + log.Println(err) + } return false, err }