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:
@ -624,11 +624,21 @@ int service_launch_all()
|
|||||||
SERVICE *ptr;
|
SERVICE *ptr;
|
||||||
int n = 0, i;
|
int n = 0, i;
|
||||||
bool error = false;
|
bool error = false;
|
||||||
|
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;
|
ptr = allServices;
|
||||||
while (ptr && !ptr->svc_do_shutdown)
|
while (ptr && !ptr->svc_do_shutdown)
|
||||||
{
|
{
|
||||||
n += (i = serviceInitialize(ptr));
|
n += (i = serviceInitialize(ptr));
|
||||||
|
MXS_NOTICE("Service '%s' started (%d/%d)", ptr->name, curr_svc++, num_svc);
|
||||||
|
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user