# How to disable message "Solving linear variational problem."

It seems whenever we solve a variational problem with "solve", it always gives the message "Solving linear variational problem." Is there any way to disable the message?

edited Aug 6, 2013

Yes, either raise the log level by calling the command

set_log_level(level)


where level is either WARNING or ERROR. You can experiment with different levels to get different amounts of diagnostic messages:

CRITICAL  = 50, // errors that may lead to data corruption and suchlike
ERROR     = 40, // things that go boom
WARNING   = 30, // things that may go boom later
INFO      = 20, // information of general interest
PROGRESS  = 16, // what's happening (broadly)
TRACE     = 13, // what's happening (in detail)
DBG       = 10  // sundry


To turn of logging completely, use

set_log_active(False)

answered Aug 4, 2013 by FEniCS Expert (11,790 points)
selected Aug 4, 2013 by xpq