Skip to content

Commit

Permalink
feat: Add more debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
DblK committed Dec 28, 2021
1 parent ca212e2 commit 0a19121
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sources/directory/private.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
3 changes: 3 additions & 0 deletions sources/nfs/private.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 0a19121

Please sign in to comment.