Revert "Increase logging level during unit tests"

This reverts commit 709f3a33d5.
This commit is contained in:
Nick Hall 2017-05-11 01:05:42 +01:00
parent 709f3a33d5
commit 8086d9f2ca

View File

@ -254,8 +254,6 @@ class Gramps:
self.clidbmanager = CLIDbManager(self.dbstate)
def run(self, *args, stdin=None, bytesio=False):
logger = logging.getLogger()
old_level = logger.getEffectiveLevel()
with capture(stdin, bytesio=bytesio) as output:
try:
try: # make sure we have user directories
@ -278,9 +276,7 @@ class Gramps:
argparser.print_usage()
handler = ArgHandler(self.dbstate, argparser, self.climanager)
# create a manager to manage the database
logger.setLevel(logging.CRITICAL)
handler.handle_args_cli()
logger.setLevel(old_level)
if handler.dbstate.is_open():
handler.dbstate.db.close()
except: