diff --git a/sources/src/functions.c b/sources/src/functions.c
index da3417078178868da98b3d3707c428808def399d..a6ed2911ca9ceb2da39f3211b08f441f75ae66f4 100644
--- a/sources/src/functions.c
+++ b/sources/src/functions.c
@@ -226,6 +226,7 @@ void *readUdp(void *arg)
 
         if (SHOULD_EXIT && PROXY_INIT_COMPLETE)
         {
+            printf("Exiting readUdp loop due to should_exit flag.\n");
             break;
         }
     }