]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
master: test-auth-client - Add log prefixes to distinguish client and server debug...
authorStephan Bosch <stephan.bosch@open-xchange.com>
Fri, 10 Apr 2020 19:48:11 +0000 (21:48 +0200)
committerStephan Bosch <stephan.bosch@open-xchange.com>
Mon, 25 May 2020 17:38:24 +0000 (19:38 +0200)
src/master/test-auth-client.c

index c568c9a1c60889216a507e2034c08b5485f3be45..30f4b29783fd6ae896e0c5574ba8e75572404746 100644 (file)
@@ -1200,8 +1200,9 @@ test_run_client_server(test_client_init_t *client_test,
                                io_loop_destroy(&ioloop);
                        }
                        lib_signals_deinit();
+                       i_set_failure_prefix("SERVER: ");
                        if (debug)
-                               i_debug("server: PID=%s", my_pid);
+                               i_debug("PID=%s", my_pid);
                        /* child: server */
                        ioloop = io_loop_create();
                        server_test();
@@ -1215,13 +1216,14 @@ test_run_client_server(test_client_init_t *client_test,
                }
                if (fd_listen != -1)
                        i_close_fd(&fd_listen);
-               if (debug)
-                       i_debug("client: PID=%s", my_pid);
 
                lib_signals_ioloop_attach();
        }
 
        /* parent: client */
+       i_set_failure_prefix("CLIENT: ");
+       if (debug)
+               i_debug("PID=%s", my_pid);
 
        usleep(100000); /* wait a little for server setup */
 
@@ -1231,6 +1233,7 @@ test_run_client_server(test_client_init_t *client_test,
        test_client_deinit();
        io_loop_destroy(&ioloop);
 
+       i_unset_failure_prefix();
        test_server_kill();
        i_unlink_if_exists(TEST_SOCKET);
 }