# How to decrease verbosity

**URL:** <https://root-forum.cern.ch/t/how-to-decrease-verbosity/14045>\
**Category:** ROOT\
**Created:** [March 27, 2012, 8:26am UTC](https://root-forum.cern.ch/t/how-to-decrease-verbosity/14045 "2012-03-27T08:26:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dadoun](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/4bbf92/32.png) [@dadoun](https://root-forum.cern.ch/u/dadoun)\
**Post date:** [March 27, 2012, 8:26am UTC](https://root-forum.cern.ch/t/how-to-decrease-verbosity/14045/1 "2012-03-27T08:26:28Z")

</div>

Hello everybody,

I have a root script toto.C and I open it like this :  
root toto.C  
I would like to suppress this default echo  
Processing toto.C…  
and also this one  
Info in TCanvas::MakeDefCanvas: created default TCanvas with name c1

Is there the way change the root verbosity ?

By advance thank you  
Olivier

---

<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:** [March 27, 2012, 9:15am UTC](https://root-forum.cern.ch/t/how-to-decrease-verbosity/14045/2 "2012-03-27T09:15:21Z")

</div>

root -b -q -l toto.C \>& /dev/null

---

<div class="post-metadata">

**Author:** ![dadoun](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/4bbf92/32.png) [@dadoun](https://root-forum.cern.ch/u/dadoun)\
**Post date:** [March 27, 2012, 9:32am UTC](https://root-forum.cern.ch/t/how-to-decrease-verbosity/14045/3 "2012-03-27T09:32:32Z")

</div>

Thank you PePe for the answer.  
but in this case stdout and stderr is going to /dev/null  
I thought something like  
root -b -q -l toto.C 2\>/dev/null  
but is not working ![#-o](https://root-forum.cern.ch/uploads/default/original/1X/378b417f7f25e635458e14f511257ba15acc7a37.gif "d'oh!")

---

<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:** [March 27, 2012, 10:03am UTC](https://root-forum.cern.ch/t/how-to-decrease-verbosity/14045/4 "2012-03-27T10:03:43Z")

</div>

It is working … simply the messages that you see come from stdout (i.e. 1), not from stderr (i.e. 2).  
You can get rid of the canvas related message if you add into your “toto.C” something like (somewhere before the first “draw” command):  
new TCanvas(“c1”, “c1”);  
You can get rid of the “processing” message if you run your macro using:  
echo ‘gROOT-\>LoadMacro(“toto.C”); toto(); gSystem-\>Exit(0);’ | root -b -l  
See also [url][Compile and run from command prompt](https://root-forum.cern.ch/t/compile-and-run-from-command-prompt/13799/1)

---

<div class="post-metadata">

**Author:** ![dadoun](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/4bbf92/32.png) [@dadoun](https://root-forum.cern.ch/u/dadoun)\
**Post date:** [March 27, 2012, 10:13am UTC](https://root-forum.cern.ch/t/how-to-decrease-verbosity/14045/5 "2012-03-27T10:13:09Z")

</div>

ok I understand thank you.  
Then stdout of my .C will go also in the /dev/null ☹  
The only solution I see is to change in my .C the cout in cerr and to  
do what you suggested  
Thank you  
Oliver

---

<div class="post-metadata">

**Author:** ![dadoun](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/4bbf92/32.png) [@dadoun](https://root-forum.cern.ch/u/dadoun)\
**Post date:** [March 27, 2012, 1:00pm UTC](https://root-forum.cern.ch/t/how-to-decrease-verbosity/14045/6 "2012-03-27T13:00:01Z")

</div>

by the way this work perfectly

echo ‘gROOT-\>LoadMacro(“toto.C”); toto(); gSystem-\>Exit(0);’ | root -b -l

thank you  
Olivier

---

<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:** [March 27, 2012, 4:55pm UTC](https://root-forum.cern.ch/t/how-to-decrease-verbosity/14045/7 "2012-03-27T16:55:43Z")

</div>

Hi,

> [@](#):
>
> Is there the way change the root verbosity ?

Yes, to prevent the print of the Info message do:` gErrorIgnoreLevel = kWarning;`

Cheers,  
Philippe.

---

<div class="post-metadata">

**Author:** ![dadoun](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/4bbf92/32.png) [@dadoun](https://root-forum.cern.ch/u/dadoun)\
**Post date:** [March 28, 2012, 3:01pm UTC](https://root-forum.cern.ch/t/how-to-decrease-verbosity/14045/8 "2012-03-28T15:01:36Z")

</div>

Hello Philippe,

thank you I was looking for something like this.  
But unfortunately it seems it is not working … ☹  
I still have this “Processing …” message  
Olivier

---

<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:** [March 28, 2012, 3:21pm UTC](https://root-forum.cern.ch/t/how-to-decrease-verbosity/14045/9 "2012-03-28T15:21:35Z")

</div>

Hi,

To suppress the ‘Processing’ message you need to have a rootlogon.C file containing:`{
gPrintViaErrorHandler = kTRUE;
gErrorIgnoreLevel = kWarning;
}`(however this will also suppress all other message send via ROOT’s Printf).

Cheers,  
Philippe.

---

<div class="post-metadata">

**Author:** ![dadoun](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/4bbf92/32.png) [@dadoun](https://root-forum.cern.ch/u/dadoun)\
**Post date:** [March 28, 2012, 3:39pm UTC](https://root-forum.cern.ch/t/how-to-decrease-verbosity/14045/10 "2012-03-28T15:39:35Z")

</div>

yes it works perfectly 😃  
Thank you very much  
cheers  
Olivier

---

<div class="post-metadata">

**Author:** ![konildi](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/f14d63/32.png) [@konildi](https://root-forum.cern.ch/u/konildi)\
**Post date:** [May 25, 2015, 7:12pm UTC](https://root-forum.cern.ch/t/how-to-decrease-verbosity/14045/11 "2015-05-25T19:12:20Z")

</div>

It got rid of not only the warnings but also the fit output, even though I am not using a quiet mode, just options “SIEM”. I would like to have only these output below:

FCN=7.24136 FROM MINOS STATUS=SUCCESSFUL 586 CALLS 5975 TOTAL  
EDM=2.22571e-06 STRATEGY= 1 ERROR MATRIX UNCERTAINTY 6.8 per cent  
EXT PARAMETER STEP FIRST  
NO. NAME VALUE ERROR SIZE DERIVATIVE  
1 p0 1.94920e-10 5.80194e-10 -8.07072e-04 -3.09127e-03  
2 p1 6.06819e-02 2.09887e+00 -2.31920e-04 1.06478e-02  
3 p2 -1.85090e+00 2.22413e-01 -3.94713e-06 2.84732e-02  
4 p3 1.35383e-01 2.10279e-01 2.10279e-01 -3.64646e-04

# and get rid of the warning: NEW MINIMUM FOUND. GO BACK TO MINIMIZATION STEP.

```
                                              V
                                              V
                                              V
                                           VVVVVVV
                                            VVVVV
                                             VVV
                                              V
```
