[lxc-devel] [PATCH] make failure to connect to cgmanager DEBUG instead of ERROR

Serge Hallyn serge.hallyn at ubuntu.com
Tue Mar 11 19:58:46 UTC 2014


Quoting Dwight Engen (dwight.engen at oracle.com):
> You can have both cgmanager and cgfs compiled in, and lxc will fall back
> at runtime to cgfs if it cannot connect to cgmanager, so print the failure
> to connect as a DEBUG like the code used to do.
> 
> Signed-off-by: Dwight Engen <dwight.engen at oracle.com>

Acked-by: Serge E. Hallyn <serge.hallyn at ubuntu.com>

> ---
>  src/lxc/cgmanager.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/lxc/cgmanager.c b/src/lxc/cgmanager.c
> index 38f482b..6cefacb 100644
> --- a/src/lxc/cgmanager.c
> +++ b/src/lxc/cgmanager.c
> @@ -143,7 +143,7 @@ static bool do_cgm_dbus_connect(void)
>  
>  	connection = dbus_connection_open_private(CGMANAGER_DBUS_SOCK, &dbus_error);
>  	if (!connection) {
> -		ERROR("Failed opening dbus connection: %s: %s",
> +		DEBUG("Failed opening dbus connection: %s: %s",
>  				dbus_error.name, dbus_error.message);
>  		dbus_error_free(&dbus_error);
>  		return false;
> -- 
> 1.8.5.3
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel


More information about the lxc-devel mailing list