Skip to content

Commit

Permalink
MAINT: more trial and error on what will make fenics logs silent
Browse files Browse the repository at this point in the history
  • Loading branch information
jotelha committed Jan 14, 2024
1 parent aca11d8 commit 2a5ecac
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ class ArgumentDefaultsAndRawDescriptionHelpFormatter(
# we don't want that, hence here we have to suppress fenics logging
# if no output file has been specified
try:
fenics.set_log_active(False)
dolfin.cpp.log.set_log_active(False)
logging.getLogger('UFL').setLevel(logging.WARNING)
logging.getLogger('FFC').setLevel(logging.WARNING)
Expand Down

0 comments on commit 2a5ecac

Please sign in to comment.