THRIFT-5898: Replace global variable with a singleton getter
Client: cpp
diff --git a/contrib/transport-sample/ThriftCommon.cpp b/contrib/transport-sample/ThriftCommon.cpp
index 2b676a8..9f08707 100644
--- a/contrib/transport-sample/ThriftCommon.cpp
+++ b/contrib/transport-sample/ThriftCommon.cpp
@@ -7,7 +7,7 @@
{
//----------------------------------------------------------------------------
//Launch child process and pass R/W anonymous pipe handles on cmd line.
- //This is a simple example and does not include elevation or other
+ //This is a simple example and does not include elevation or other
//advanced features.
//
bool LaunchAnonPipeChild(std::string app, boost::shared_ptr<TServerTransport> transport)
@@ -25,7 +25,7 @@
//spawn the child process
if (!CreateProcessA(nullptr, handles, nullptr,nullptr,TRUE,0,nullptr,nullptr,&si,&pi))
{
- GlobalOutput.perror("TPipeServer CreateProcess failed, GLE=", GetLastError());
+ TOutput::instance().perror("TPipeServer CreateProcess failed, GLE=", GetLastError());
return false;
}