[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[monit-dev] [monit] r259 committed - procfile error -> debug
From: |
monit |
Subject: |
[monit-dev] [monit] r259 committed - procfile error -> debug |
Date: |
Thu, 16 Sep 2010 21:40:09 +0000 |
Revision: 259
Author: martin2812
Date: Thu Sep 16 14:29:28 2010
Log: procfile error -> debug
http://code.google.com/p/monit/source/detail?r=259
Modified:
/trunk/process/process_common.c
/trunk/process/sysdep_AIX.c
=======================================
--- /trunk/process/process_common.c Thu Sep 16 03:02:23 2010
+++ /trunk/process/process_common.c Thu Sep 16 14:29:28 2010
@@ -104,12 +104,12 @@
snprintf(filename, STRLEN, "/proc/%d/%s", pid, name);
if ((fd = open(filename, O_RDONLY)) < 0) {
- LogError("%s: Cannot open proc file %s -- %s\n", prog, filename,
STRERROR);
+ DEBUG("%s: Cannot open proc file %s -- %s\n", prog, filename,
STRERROR);
return rv;
}
if ((bytes = read(fd, buf, buf_size-1)) < 0) {
- LogError("%s: Cannot read proc file %s -- %s\n", prog, filename,
STRERROR);
+ DEBUG("%s: Cannot read proc file %s -- %s\n", prog, filename,
STRERROR);
goto error;
}
if (bytes_read)
=======================================
--- /trunk/process/sysdep_AIX.c Thu Sep 16 03:02:23 2010
+++ /trunk/process/sysdep_AIX.c Thu Sep 16 14:29:28 2010
@@ -235,11 +235,11 @@
snprintf(filename, sizeof(filename), "/proc/%d/psinfo", pt[i].pid);
if ((fd = open(filename, O_RDONLY)) < 0) {
- LogError("%s: Cannot open proc file %s -- %s\n", prog, filename,
STRERROR);
+ DEBUG("%s: Cannot open proc file %s -- %s\n", prog, filename,
STRERROR);
continue;
}
if (read(fd, &ps, sizeof(ps)) < 0) {
- LogError("%s: Cannot read proc file %s -- %s\n", prog, filename,
STRERROR);
+ DEBUG("%s: Cannot read proc file %s -- %s\n", prog, filename,
STRERROR);
if (close(fd) < 0)
LogError("%s: Socket close failed -- %s\n", prog, STRERROR);
return FALSE;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [monit-dev] [monit] r259 committed - procfile error -> debug,
monit <=