MXS-1699: Log progress messages at startup

When MaxScale is starting, the loading of the listeners can take a while
if there are a large number of services and users to load. To signal this
to the user, progress messages should be logged after every service is
started.
This commit is contained in:
Markus Mäkelä 2018-03-05 18:57:29 +02:00
parent 9144ed3448
commit b619fb0707
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -629,10 +629,20 @@ int service_launch_all()
config_enable_feedback_task();
int num_svc = 0;
for (ptr = allServices; ptr; ptr = ptr->next)
{
num_svc++;
}
MXS_NOTICE("Starting a total of %d services...", num_svc);
int curr_svc = 1;
ptr = allServices;
while (ptr && !ptr->svc_do_shutdown)
{
n += (i = serviceInitialize(ptr));
MXS_NOTICE("Service '%s' started (%d/%d)", ptr->name, curr_svc++, num_svc);
if (i == 0)
{