Make the log stuff a bit tidier with some helper functions.

This commit is contained in:
nicm
2015-11-24 21:19:46 +00:00
parent 4ec61bef46
commit 9cccb8c115
6 changed files with 36 additions and 27 deletions

2
proc.c
View File

@ -188,7 +188,7 @@ proc_start(const char *name, struct event_base *base, int forkflag,
fatalx("event_reinit failed");
}
logfile(name);
log_open(name);
setproctitle("%s (%s)", name, socket_path);
log_debug("%s started (%ld): socket %s, protocol %d", name,