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:
		@ -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)
 | 
			
		||||
        {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user