Skip to content
Snippets Groups Projects
Commit 6bdd0b04 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Print-out addresses of logging streams to debug nightlies

parent 53d7e27b
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -52,6 +52,7 @@ struct StdoutOutputDevice: public bob::core::OutputDevice { ...@@ -52,6 +52,7 @@ struct StdoutOutputDevice: public bob::core::OutputDevice {
#if ((BOOST_VERSION / 100) % 1000) > 35 #if ((BOOST_VERSION / 100) % 1000) > 35
boost::lock_guard<boost::mutex> lock(mutex); boost::lock_guard<boost::mutex> lock(mutex);
#endif #endif
std::cout << "[XX] writing to cout at " << (void*)&std::cout << std::endl;
std::cout.write(s, n); std::cout.write(s, n);
return n; return n;
} }
...@@ -64,6 +65,7 @@ struct StderrOutputDevice: public bob::core::OutputDevice { ...@@ -64,6 +65,7 @@ struct StderrOutputDevice: public bob::core::OutputDevice {
#if ((BOOST_VERSION / 100) % 1000) > 35 #if ((BOOST_VERSION / 100) % 1000) > 35
boost::lock_guard<boost::mutex> lock(mutex); boost::lock_guard<boost::mutex> lock(mutex);
#endif #endif
std::cout << "[XX] writing to cerr at " << (void*)&std::cerr << std::endl;
std::cerr.write(s, n); std::cerr.write(s, n);
return n; return n;
} }
......
...@@ -250,6 +250,8 @@ BOB_TRY ...@@ -250,6 +250,8 @@ BOB_TRY
if (!PyArg_ParseTupleAndKeywords(args, kwds, "", kwlist)) return 0; if (!PyArg_ParseTupleAndKeywords(args, kwds, "", kwlist)) return 0;
std::cout << "[XX] redirecting cout at " << (void*)&std::cout << std::endl;
std::cout << "[XX] redirecting cerr at " << (void*)&std::cerr << std::endl;
_ostream_redirect out(std::cout); _ostream_redirect out(std::cout);
_ostream_redirect err(std::cerr); _ostream_redirect err(std::cerr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment