#include "lib-event-private.h"
#include "event-filter.h"
#include "ioloop.h"
+#include "hostpid.h"
#include "path-util.h"
#include "array.h"
#include "strescape.h"
service->log_initialized = TRUE;
}
+void master_service_init_log_with_pid(struct master_service *service)
+{
+ master_service_init_log(service, t_strdup_printf(
+ "%s(%s): ", service->configured_name, my_pid));
+}
+
void master_service_init_stats_client(struct master_service *service,
bool silent_notfound_errors)
{
functions. The following calls change the log prefix. */
void master_service_init_log(struct master_service *service,
const char *prefix);
+/* Initialize/change log prefix to "configured_name(my_pid): " */
+void master_service_init_log_with_pid(struct master_service *service);
/* Initialize stats client (if it's not already initialized). This is called
automatically if MASTER_SERVICE_FLAG_SEND_STATS is enabled. If
silent_notfound_errors is set, connect() errors aren't logged if they're