]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-master: Add master_service_init_log_with_prefix()
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 20 Apr 2020 18:41:05 +0000 (21:41 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Fri, 24 Apr 2020 10:42:00 +0000 (10:42 +0000)
src/lib-master/master-service.c
src/lib-master/master-service.h

index fd4a61c82e1a36322d44d6a18c954c5fc371bcee..07c4a9c4b54732b7981379318d3f9b34255ca9c3 100644 (file)
@@ -505,6 +505,12 @@ master_service_try_init_log(struct master_service *service,
 
 void master_service_init_log(struct master_service *service,
                             const char *prefix)
+{
+       master_service_init_log_with_prefix(service, prefix);
+}
+
+void master_service_init_log_with_prefix(struct master_service *service,
+                                        const char *prefix)
 {
        if (service->log_initialized) {
                /* change only the prefix */
index b8f9904873757ead17f4a043378d4f2406252285..7d19604a428d0bc23870f1e73f7e4d1c7c662669 100644 (file)
@@ -131,6 +131,9 @@ void master_service_env_clean(void);
    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 the given log prefix. */
+void master_service_init_log_with_prefix(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