Skip to content

Commit

Permalink
Merge pull request #452 from sum2012/patch-log
Browse files Browse the repository at this point in the history
Reduce some log level
  • Loading branch information
gid15 committed Jul 15, 2020
2 parents eaf0c2f + 7427225 commit 69699f2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/jpcsp/HLE/modules/ThreadManForUser.java
Original file line number Diff line number Diff line change
Expand Up @@ -2251,7 +2251,8 @@ public int hleKernelExitDeleteThread() {
*/
public int checkThreadID(int uid) {
if (uid == 0) {
log.warn("checkThreadID illegal thread uid=0");
if (log.isDebugEnabled())
log.debug("checkThreadID illegal thread uid=0");
throw new SceKernelErrorException(ERROR_KERNEL_ILLEGAL_THREAD);
}
return checkThreadIDAllow0(uid);
Expand All @@ -2269,7 +2270,8 @@ public int checkThreadIDAllow0(int uid) {
uid = currentThread.uid;
}
if (!threadMap.containsKey(uid)) {
log.warn(String.format("checkThreadID not found thread 0x%08X", uid));
if (log.isDebugEnabled())
log.debug(String.format("checkThreadID not found thread 0x%08X", uid));
throw new SceKernelErrorException(ERROR_KERNEL_NOT_FOUND_THREAD);
}

Expand All @@ -2289,7 +2291,8 @@ public int checkThreadIDAllow0(int uid) {
*/
public int checkThreadIDNoCheck0(int uid) {
if (uid == 0) {
log.warn(String.format("checkThreadID not found thread 0x%08X", uid));
if (log.isDebugEnabled())
log.debug(String.format("checkThreadID not found thread 0x%08X", uid));
throw new SceKernelErrorException(ERROR_KERNEL_NOT_FOUND_THREAD);
}
return checkThreadIDAllow0(uid);
Expand Down

0 comments on commit 69699f2

Please sign in to comment.