From 1f07adaf0f63c9ba4fcecf7ff5e140b8539e24b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 16 Jan 2017 15:16:52 +0200 Subject: [PATCH] Log commit ID for debug builds Logging the commit ID should help identify which commit was used for which log file when tests are run. --- server/core/gateway.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/core/gateway.cc b/server/core/gateway.cc index 23efd52bf..cf290057c 100644 --- a/server/core/gateway.cc +++ b/server/core/gateway.cc @@ -1777,6 +1777,11 @@ int main(int argc, char **argv) MXS_NOTICE("MariaDB MaxScale %s started", MAXSCALE_VERSION); MXS_NOTICE("MaxScale is running in process %i", getpid()); + +#ifdef SS_DEBUG + MXS_NOTICE("Commit: %s", MAXSCALE_COMMIT); +#endif + /* * Set the data directory. We use a unique directory name to avoid conflicts * if multiple instances of MaxScale are being run on the same machine.