# Reduce command line output of solve

**URL:** <https://fenicsproject.discourse.group/t/reduce-command-line-output-of-solve/1552>\
**Category:** I/O\
**Created:** [September 17, 2019, 1:15pm UTC](https://fenicsproject.discourse.group/t/reduce-command-line-output-of-solve/1552 "2019-09-17T13:15:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenjaminRueth](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/benjaminrueth/32/397_2.png) [@BenjaminRueth](https://fenicsproject.discourse.group/u/BenjaminRueth)\
**Post date:** [September 17, 2019, 1:15pm UTC](https://fenicsproject.discourse.group/t/reduce-command-line-output-of-solve/1552/1 "2019-09-17T13:15:02Z")

</div>

Is there a way to avoid the output of the `solve` function? Currently I get the message `Solving linear variational problem.` every time I call `solve(...)`. In my time-stepping procedure I have to call `solve(...)` very, very often within a single timestep and therefore it would be helpful to avoid the output.

---

<div class="post-metadata">

**Author:** ![bhaveshshrimali](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/bhaveshshrimali/32/124_2.png) [@bhaveshshrimali](https://fenicsproject.discourse.group/u/bhaveshshrimali)\
**Post date:** [September 17, 2019, 10:12pm UTC](https://fenicsproject.discourse.group/t/reduce-command-line-output-of-solve/1552/2 "2019-09-17T22:12:43Z")

</div>

What is the `log_level` that you have set in your program ? If you haven’t, you could do something like

```auto
set_log_level(50)

```

or

```auto
set_log_active(False)

```

Of course this assume that you have imported `dolfin` using the wildcards

```auto
from dolfin import *

```

Generally, the lower the `log_level` the more verbose `log` you see in the output. You could experiment with different levels to see what suits you the best in case if you do not want to completely turn it off.
