# Suppressing INFO messages

**URL:** <https://root-forum.cern.ch/t/suppressing-info-messages/14642>\
**Category:** Roofit and RooStats\
**Created:** [July 26, 2012, 5:58am UTC](https://root-forum.cern.ch/t/suppressing-info-messages/14642 "2012-07-26T05:58:33Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![dWade](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/0ea827/32.png) [@dWade](https://root-forum.cern.ch/u/dWade)\
**Post date:** [July 26, 2012, 5:58am UTC](https://root-forum.cern.ch/t/suppressing-info-messages/14642/1 "2012-07-26T05:58:33Z")

</div>

Hello everybody,

I want to suppress the INFO messages, but I can’t find a way to do it.  
I already switched on the silent mode.  
The code line that creates the messages is the following:

```auto
RooNLLVar nll("nll","nll",bw_cb_conv,data,RooFit::Verbose(kFALSE));
```

The verbose doesn’t have any effect.

Thanks for your help!  
Cheers,  
dWade

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [July 26, 2012, 6:38pm UTC](https://root-forum.cern.ch/t/suppressing-info-messages/14642/2 "2012-07-26T18:38:30Z")

</div>

Hi,

Use:`gErrorIgnoreLevel = kInfo;` to suppress the Info messages.

Cheers,  
Philippe.

---

<div class="post-metadata">

**Author:** ![dWade](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/0ea827/32.png) [@dWade](https://root-forum.cern.ch/u/dWade)\
**Post date:** [July 28, 2012, 9:40pm UTC](https://root-forum.cern.ch/t/suppressing-info-messages/14642/3 "2012-07-28T21:40:08Z")

</div>

Hi Philippe,

thanks for your response, but unfortunately this doesn’t work out for me, the output is still there. Any further ideas?  
I included the info messages below, maybe they give a hint.

```auto
[#1] INFO:Eval -- RooRealVar::setRange(mass) new range named 'refrange_fft_bw_cb_conv' created with bounds [66,116]
[#1] INFO:Caching -- RooAbsCachedPdf::getCache(bw_cb_conv) creating new cache 0x1dc0d1a0 with pdf bw_CONV_cb_CACHE_Obs[beta,mass] for nset (mass,eta1,eta2) with code 0
[#1] INFO:NumericIntegration -- RooRealIntegral::init(bw_CONV_cb_CACHE_Obs[beta,mass]_Int[mass]) using numeric integrator RooIntegrator1D to calculate Int(mass)
```

Cheers,  
dWade

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [July 30, 2012, 3:50am UTC](https://root-forum.cern.ch/t/suppressing-info-messages/14642/4 "2012-07-30T03:50:38Z")

</div>

Hi,

For the RooFit message, you need to manipulate the RooFit::MsgService: [root.cern.ch/root/html/RooMsgService.html](http://root.cern.ch/root/html/RooMsgService.html)

For example, this might do what you need (or probably be ‘too quiet’):`RooFit::RooMsgService::instance().SetStreamStatus(1,false);`  
or maybe a series of`// Remove stream for integration
  RooFit::RooMsgService::instance().getStream(1).removeTopic(NumericIntegration) ;`

Cheers,  
Philippe

---

<div class="post-metadata">

**Author:** ![Pepe\_Le\_Pew](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pepe_le_pew/32/12365_2.png) [@Pepe\_Le\_Pew](https://root-forum.cern.ch/u/Pepe_Le_Pew)\
**Post date:** [August 2, 2012, 10:36pm UTC](https://root-forum.cern.ch/t/suppressing-info-messages/14642/5 "2012-08-02T22:36:17Z")

</div>

Just a small correction of the first Philippe’s post … in order to get rid of “Info in …” messages, one needs to set: `gErrorIgnoreLevel = kWarning;`  
See [url][How to set output verbosity level in ROOT?](https://root-forum.cern.ch/t/how-to-set-output-verbosity-level-in-root/11149/1) and “${ROOTSYS}/include/TError.h” or “${ROOTSYS}/include/root/TError.h” files.

---

<div class="post-metadata">

**Author:** ![dWade](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/0ea827/32.png) [@dWade](https://root-forum.cern.ch/u/dWade)\
**Post date:** [August 20, 2012, 6:51am UTC](https://root-forum.cern.ch/t/suppressing-info-messages/14642/6 "2012-08-20T06:51:42Z")

</div>

Hi again,

sorry for my long absence.

Unfortunately none of all the suggestions worked out for me. I have no idea where the problem is. If you have any further ideas I would appreciate it.

Cheers,  
dWade

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [August 24, 2012, 3:22pm UTC](https://root-forum.cern.ch/t/suppressing-info-messages/14642/7 "2012-08-24T15:22:30Z")

</div>

Hi,

The RoOFit command to suppress all the Info and Progress message is:

```auto
RooMsgService::instance().setGlobalKillBelow(RooFit::WARNING) ;
```

I remind you the message are ordered by the following enumeration defined in RooGlobalFunc.h

```auto
enum MsgLevel { DEBUG=0, INFO=1, PROGRESS=2, WARNING=3, ERROR=4, FATAL=5 } ;
```

I hope this works now for you,  
Best Regards  
Lorenzo

---

<div class="post-metadata">

**Author:** ![dWade](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/0ea827/32.png) [@dWade](https://root-forum.cern.ch/u/dWade)\
**Post date:** [August 27, 2012, 3:00pm UTC](https://root-forum.cern.ch/t/suppressing-info-messages/14642/8 "2012-08-27T15:00:45Z")

</div>

Hi moneta,

thanks for your suggestion but unfortunately this doesn’t work either. I really don’t know where the problem could be.

Cheers,  
dWade

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [August 27, 2012, 3:17pm UTC](https://root-forum.cern.ch/t/suppressing-info-messages/14642/9 "2012-08-27T15:17:57Z")

</div>

Hi,

Probably somebody is in the code resetting the default level for the message stream. Are you using RooStats or some other package built on top of RooFit ?

Lorenzo

---

<div class="post-metadata">

**Author:** ![dWade](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/0ea827/32.png) [@dWade](https://root-forum.cern.ch/u/dWade)\
**Post date:** [August 31, 2012, 1:23am UTC](https://root-forum.cern.ch/t/suppressing-info-messages/14642/10 "2012-08-31T01:23:44Z")

</div>

Hi,

Isn’t RooStats contained in the RooFit package? Like RooFitCore, which I’m using by the way.

Cheers,  
dWade

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [August 31, 2012, 8:00am UTC](https://root-forum.cern.ch/t/suppressing-info-messages/14642/11 "2012-08-31T08:00:50Z")

</div>

Hi,  
RooStats is a a package built on top of libRooFitCore and libRooFit. I was thinking that maybe some RooStats code was re-setting the message level to its default after you have set an higher suppression level.  
So, the only way now to help you in this is to have your code, or a minimal part of it, showing this problem

Best Regards

Lorenzo

---

<div class="post-metadata">

**Author:** ![dWade](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/0ea827/32.png) [@dWade](https://root-forum.cern.ch/u/dWade)\
**Post date:** [September 5, 2012, 1:54pm UTC](https://root-forum.cern.ch/t/suppressing-info-messages/14642/12 "2012-09-05T13:54:21Z")

</div>

Hi again,

the problem is kind of solved for me. Since I’m doing my analysis in a stand-alone C++ program now using all the root and roofit libs your suggestions worked out for me. So I’m doing

```auto
RooMsgService::instance().setGlobalKillBelow(RooFit::WARNING);
```

and

```auto
RooMinuit m(*nll);
m.setPrintLevel(-1);
```

Now I have only the output of minos, but it seems that you cannot suppress it.

Before that I did all my analysis in a root macro. I have still no idea why it didn’t work out.

Thanks for your help!  
Cheers,  
dWade

---

<div class="post-metadata">

**Author:** ![aharel](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/c2a13f/32.png) [@aharel](https://root-forum.cern.ch/u/aharel)\
**Post date:** [March 18, 2013, 7:01pm UTC](https://root-forum.cern.ch/t/suppressing-info-messages/14642/13 "2013-03-18T19:01:21Z")

</div>

Output from MINOS can be suppressed. Just use a negative enough print level (e.g. -1000).
