]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: test-http-server-errors - Add log prefixes to distinguish client and server...
authorStephan Bosch <stephan.bosch@open-xchange.com>
Mon, 11 Nov 2019 22:37:01 +0000 (23:37 +0100)
committermartti.rannanjarvi <martti.rannanjarvi@open-xchange.com>
Sat, 18 Apr 2020 14:55:11 +0000 (14:55 +0000)
src/lib-http/test-http-server-errors.c

index f9a1dbc9f17707a2d8742d07e2b1f2c5160e5672..3eb94bc66ad279f59b1cbf177c65dbf848e3f707 100644 (file)
@@ -790,6 +790,7 @@ test_run_client_server(const struct http_server_settings *server_set,
                                        i_debug("client[%d]: PID=%s",
                                                i+1, my_pid);
                                }
+                               i_set_failure_prefix("CLIENT[%u]: ", i + 1);
                                /* Child: client */
                                /* Wait a little for server setup */
                                i_sleep_msecs(100);
@@ -807,6 +808,7 @@ test_run_client_server(const struct http_server_settings *server_set,
                }
                if (debug)
                        i_debug("server: PID=%s", my_pid);
+               i_set_failure_prefix("SERVER: ");
        }
 
        /* Parent: server */