openstack4j 开启debug模式

// 开启debug 模式.
OSFactory.enableHttpLoggingFilter(true);
// V3 authentication
OSClient.OSClientV3 os = OSFactory.builderV3().endpoint(iamDomainV3)
                .credentials(this.getUserName(), this.getPassWord(), Identifier.byName(this.domainName))
                .scopeToDomain(Identifier.byName(this.domainName)).perspective(Facing.PUBLIC).withConfig(config)
                .authenticate();

openstack4j 支持输出http 日志. 方便查看请求发送的参数.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.