File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,10 @@ void PythonFilter::ready(PointTableRef table)
130130 if (m_args->m_source .empty ())
131131 m_args->m_source = FileUtils::readFileIntoString (m_args->m_scriptFile );
132132 std::ostream *out = log ()->getLogStream ();
133+ std::cerr << " Just writing to output!\n " ;
134+ std::cerr << " Output = " << out << " !\n " ;
135+ *out << " Writing to output!\n " ;
136+ std::cerr << " Done writing to output!\n " ;
133137 plang::EnvironmentPtr env = plang::Environment::get ();
134138 env->set_stdout (out);
135139 m_script.reset (new plang::Script (m_args->m_source , m_args->m_module ,
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ PyObject* Redirector::init()
171171
172172void Redirector::set_stdout (std::ostream* ostr)
173173{
174- stdout_write_type writeFunc = [ostr](std::string msg) { *ostr << msg; };
174+ stdout_write_type writeFunc = [ostr](std::string msg) { std::cerr << " Ostr = " << ostr << " ! \n " ; *ostr << msg; };
175175 stdout_flush_type flushFunc = [ostr]{ ostr->flush (); };
176176
177177 this ->set_stdout (writeFunc, flushFunc);
You can’t perform that action at this time.
0 commit comments