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>
char timestr[128];
time_t t;
char timestr[128];
time_t t;
- pr_info("loop start\n");
/*
* Update all databases parallel in one shot
*/
/*
* Update all databases parallel in one shot
*/
- 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);
job_handler->name, job_handler->fd);
job_handler->handle_event(job_handler);
if (child) {
child_count++;
if (child) {
child_count++;
- pr_info("Fork %d, child %d\n", child_count, child);
+ pr_debug("Fork %d, child %d\n", child_count, child);
atexit(limited_fork_exit_handler);
is_limited_fork = 1;
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);
/* Signal the parent that we are here, waiting to go */
request_fork(1);
- pr_info("Continuing\n");
+ pr_debug("Continuing\n");
- pr_info("Waiting on pid %d, children left: %d\n", pid,
+ pr_debug("Waiting on pid %d, children left: %d\n", pid,
status_str = "killed by signal";
code = WTERMSIG(status);
}
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);
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);
(long)rusage.ru_utime.tv_sec, rusage.ru_utime.tv_usec / 1000,
(long)rusage.ru_stime.tv_sec, rusage.ru_stime.tv_usec / 1000);