This is an automated email from the ASF dual-hosted git repository.

bbender pushed a commit to branch feature/asio
in repository https://gitbox.apache.org/repos/asf/geode-native.git

commit ba7cf6d13ee9d236d36a160fd91fbb696443487a
Author: Blake Bender <[email protected]>
AuthorDate: Wed Jul 29 16:23:53 2020 -0700

    Fix logging spec in SNITest, LOGDEBUG statement in TcpSslConn
---
 cppcache/integration/test/SNITest.cpp | 5 +++--
 cppcache/src/TcpSslConn.cpp           | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/cppcache/integration/test/SNITest.cpp 
b/cppcache/integration/test/SNITest.cpp
index 4d50e08..66d8f8e 100644
--- a/cppcache/integration/test/SNITest.cpp
+++ b/cppcache/integration/test/SNITest.cpp
@@ -118,7 +118,8 @@ TEST_F(SNITest, connectViaProxyTest) {
       (clientSslKeysDir / boost::filesystem::path("truststore_sni.pem"));
 
   auto cache = CacheFactory()
-                   .set("log-level", "DEBUG")
+                   .set("log-level", "debug")
+                   .set("log-file", "SNIProxyTest.log")
                    .set("ssl-enabled", "true")
                    .set("ssl-truststore", clientTruststore.string())
                    .create();
@@ -147,7 +148,7 @@ TEST_F(SNITest, connectionFailsTest) {
        boost::filesystem::path("sni-test-config/geode-config/truststore.jks"));
 
   auto cache = CacheFactory()
-                   .set("log-level", "DEBUG")
+                   .set("log-level", "none")
                    .set("ssl-enabled", "true")
                    .set("ssl-truststore", clientTruststore.string())
                    .create();
diff --git a/cppcache/src/TcpSslConn.cpp b/cppcache/src/TcpSslConn.cpp
index 52b3072..0ad9b91 100644
--- a/cppcache/src/TcpSslConn.cpp
+++ b/cppcache/src/TcpSslConn.cpp
@@ -132,7 +132,7 @@ void TcpSslConn::init(const std::string& pubkeyfile,
   } catch (const boost::exception& ex) {
     // error handling
     std::string info = boost::diagnostic_information(ex);
-    LOGDEBUG("caught boost exception: %s", info);
+    LOGDEBUG("caught boost exception: %s", info.c_str());
   }
 }
 

Reply via email to