Fix for bug of logging in LoggingConnection

Refer to https://issues.apache.org/jira/browse/LIBCLOUD-82