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.
This commit is contained in:
Markus Mäkelä 2017-01-16 15:16:52 +02:00
parent 7e65e1ae27
commit 1f07adaf0f

View File

@ -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.