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 }