Skip to content
Snippets Groups Projects
Commit e16d4811 authored by Wouter Verkerke's avatar Wouter Verkerke
Browse files

  o RooMsgService

    - Fix bug for case where stream is redirected to a file


git-svn-id: http://root.cern.ch/svn/root/trunk@37516 27541ba8-7e3a-0410-8455-c3a389f83636
parent 63c55483
No related branches found
No related tags found
No related merge requests found
......@@ -276,7 +276,10 @@ Int_t RooMsgService::addStream(RooFit::MsgLevel level, const RooCmdArg& arg1, co
cout << "RooMsgService::addReportingStream ERROR: cannot open output log file " << outFile << " reverting stream to stdout" << endl ;
delete os2 ;
newStream.os = &cout ;
} else {
newStream.os = os2 ;
}
} else {
_files["outFile"] = os2 ;
newStream.os = os2 ;
......@@ -485,6 +488,7 @@ ostream& RooMsgService::log(const RooAbsArg* self, RooFit::MsgLevel level, RooFi
// Return C++ ostream associated with given message configuration
Int_t as = activeStream(self,topic,level) ;
if (as==-1) {
return *_devnull ;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment