From ef2dd294e9eaae7cb5e9d2c28ba78fb527595bd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Thu, 12 Aug 2021 01:18:54 +0200 Subject: [PATCH] Generate a warning if a DEBUG release/version is running --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index adc37f969..2882842ae 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1831,6 +1831,9 @@ __start_label: std::cerr << "Main init phase3 completed in "; #endif } +#ifdef DEBUG + std::cerr << "WARNING: this is a DEBUG release and can be slow or perform poorly. Do not use it in production" << std::endl; +#endif { unsigned int missed_heartbeats = 0;