# How to suppress minuit2 messages

**URL:** <https://root-forum.cern.ch/t/how-to-suppress-minuit2-messages/8776>\
**Category:** ROOT\
**Created:** [August 12, 2009, 7:12am UTC](https://root-forum.cern.ch/t/how-to-suppress-minuit2-messages/8776 "2009-08-12T07:12:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kame](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/34f0e0/32.png) [@kame](https://root-forum.cern.ch/u/kame)\
**Post date:** [August 12, 2009, 7:12am UTC](https://root-forum.cern.ch/t/how-to-suppress-minuit2-messages/8776/1 "2009-08-12T07:12:13Z")

</div>

Dear all,

Is there any way to suppress (warning) messages from Minuit2 (Info in : …) ?  
I could not find any method to control verbosity…

---

<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 12, 2009, 8:35am UTC](https://root-forum.cern.ch/t/how-to-suppress-minuit2-messages/8776/2 "2009-08-12T08:35:14Z")

</div>

Hi,

these massages go through the ROOT error reporting system.  
To switch off the messages, you can do:

```auto
 gErrorIgnoreLevel = 1001; 
```

or in case you are using the ROOT::Math::Minimizer interface you can do:

```auto
minimizer.SetPrintLevel(0);
```

Best Regards

Lorenzo

---

<div class="post-metadata">

**Author:** ![kame](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/34f0e0/32.png) [@kame](https://root-forum.cern.ch/u/kame)\
**Post date:** [August 12, 2009, 8:48am UTC](https://root-forum.cern.ch/t/how-to-suppress-minuit2-messages/8776/3 "2009-08-12T08:48:54Z")

</div>

Thank you very much !

---

<div class="post-metadata">

**Author:** ![yamiddu](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/35a633/32.png) [@yamiddu](https://root-forum.cern.ch/u/yamiddu)\
**Post date:** [February 6, 2010, 11:44pm UTC](https://root-forum.cern.ch/t/how-to-suppress-minuit2-messages/8776/4 "2010-02-06T23:44:59Z")

</div>

Hi,  
I have the same problem with ROOT::Math::MnMigrad, but there’s no SetPrintLevel function here.  
Is there a way to suppress messages with a MnMigrad minimizer, considering it’s a compiled code?

update:  
ok, I inserted an extern declaration of gErrorIgnoreLevel and it works, not really “elegant” but efficient

`extern int gErrorIgnoreLevel;
gErrorIgnoreLevel = 1001;`
