]> git.itanic.dy.fi Git - rrdd/commitdiff
Remove excess debug prints from default trace level
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Fri, 30 Nov 2012 16:49:50 +0000 (18:49 +0200)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Fri, 30 Nov 2012 16:49:50 +0000 (18:49 +0200)
Now that we have debug print macro, move some of the most chatty
messages to the debug level from cluttering normal output.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
main.c
process.c

diff --git a/main.c b/main.c
index 29d3e8c82e491d9c7ce49650d9e51d6b68bff5a2..ef879e648826866653564ac9fc01171e2c88fb02 100644 (file)
--- a/main.c
+++ b/main.c
@@ -111,7 +111,6 @@ int main(int argc, char *argv[])
                char timestr[128];
                time_t t;
 
-               pr_info("loop start\n");
                /*
                 * Update all databases parallel in one shot
                 */
index 27e940050aa6804d10c2cb74bb903779b1ccefa4..3cdb6e1977377c1f53448e188807daec4de1fc19 100644 (file)
--- a/process.c
+++ b/process.c
@@ -273,7 +273,7 @@ int poll_job_requests(int timeout)
                goto out;
        }
 
-       pr_info("Running handler %s to handle events from fd %d\n",
+       pr_debug("Running handler %s to handle events from fd %d\n",
                job_handler->name, job_handler->fd);
        job_handler->handle_event(job_handler);
 
@@ -301,7 +301,7 @@ int do_fork(void)
 
        if (child) {
                child_count++;
-               pr_info("Fork %d, child %d\n", child_count, child);
+               pr_debug("Fork %d, child %d\n", child_count, child);
                return child;
        }
 
@@ -377,7 +377,7 @@ int do_fork_limited(void)
        atexit(limited_fork_exit_handler);
        is_limited_fork = 1;
 
-       pr_info("Requesting permission to go\n");
+       pr_debug("Requesting permission to go\n");
 
        /* Signal the parent that we are here, waiting to go */
        request_fork(1);
@@ -406,7 +406,7 @@ int do_fork_limited(void)
                raise(SIGKILL);
        }
 
-       pr_info("Continuing\n");
+       pr_debug("Continuing\n");
        return child;
 }
 
@@ -421,7 +421,7 @@ int harvest_zombies(int pid)
                return 0;
 
        if (pid)
-               pr_info("Waiting on pid %d, children left: %d\n", pid, 
+               pr_debug("Waiting on pid %d, children left: %d\n", pid, 
                        child_count);
 
        do {
@@ -441,9 +441,9 @@ int harvest_zombies(int pid)
                status_str = "killed by signal";
                code = WTERMSIG(status);
        }
-       pr_info("pid %d: %s %d. Children left: %d\n", pid,
+       pr_debug("pid %d: %s %d. Children left: %d\n", pid,
                status_str, code, child_count);
-       pr_info("pid %d: User time: %ld.%03lds, System %ld.%03lds\n", pid,
+       pr_debug("pid %d: User time: %ld.%03lds, System %ld.%03lds\n", pid,
                (long)rusage.ru_utime.tv_sec, rusage.ru_utime.tv_usec / 1000,
                (long)rusage.ru_stime.tv_sec, rusage.ru_stime.tv_usec / 1000);