summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-11-12 13:40:24 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2017-11-12 13:40:24 +0100
commit3c5438978f621f18b8e9b0b70fde4182221d7cb3 (patch)
tree6c3405df084ccc3daf0b5d795ff13bff56e98230
parent648ebe12265d20025ec1557af3f302f6fe5c2802 (diff)
downloadpsutil-3c5438978f621f18b8e9b0b70fde4182221d7cb3.tar.gz
do not print too much
-rw-r--r--psutil/_psutil_posix.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/psutil/_psutil_posix.c b/psutil/_psutil_posix.c
index 8ccd8a91..76cf2db0 100644
--- a/psutil/_psutil_posix.c
+++ b/psutil/_psutil_posix.c
@@ -116,8 +116,6 @@ psutil_raise_for_pid(long pid, char *syscall_name) {
// Set exception to AccessDenied if pid exists else NoSuchProcess.
if (errno != 0) {
// Unlikely we get here.
- psutil_debug("%s syscall failed and set errno to %i; raising "
- "OSError(errno)", syscall_name, errno);
PyErr_SetFromErrno(PyExc_OSError);
return 0;
}