config: error message cleanup
Demote failure to connect from ErrorF to DebugF.
This commit is contained in:
		
							parent
							
								
									81876bc5dd
								
							
						
					
					
						commit
						e9a2cc7d9f
					
				| 
						 | 
					@ -303,15 +303,15 @@ configSetup(void)
 | 
				
			||||||
    if (!configData)
 | 
					    if (!configData)
 | 
				
			||||||
        configData = (struct config_data *) xcalloc(sizeof(struct config_data), 1);
 | 
					        configData = (struct config_data *) xcalloc(sizeof(struct config_data), 1);
 | 
				
			||||||
    if (!configData) {
 | 
					    if (!configData) {
 | 
				
			||||||
        ErrorF("[dbus] failed to allocate data struct.\n");
 | 
					        ErrorF("[dbus] failed to allocate data struct\n");
 | 
				
			||||||
        return FALSE;
 | 
					        return FALSE;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    dbus_error_init(&error);
 | 
					    dbus_error_init(&error);
 | 
				
			||||||
    configData->connection = dbus_bus_get(DBUS_BUS_SYSTEM, &error);
 | 
					    configData->connection = dbus_bus_get(DBUS_BUS_SYSTEM, &error);
 | 
				
			||||||
    if (!configData->connection || dbus_error_is_set(&error)) {
 | 
					    if (!configData->connection || dbus_error_is_set(&error)) {
 | 
				
			||||||
        ErrorF("[dbus] some kind of error occurred: %s (%s)\n", error.name,
 | 
					        DebugF("[dbus] some kind of error occurred while connecting: %s (%s)\n",
 | 
				
			||||||
                error.message);
 | 
					               error.name, error.message);
 | 
				
			||||||
        dbus_error_free(&error);
 | 
					        dbus_error_free(&error);
 | 
				
			||||||
        xfree(configData);
 | 
					        xfree(configData);
 | 
				
			||||||
        configData = NULL;
 | 
					        configData = NULL;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue