From d39574007896fcf12f244685499312233a6e4b6f Mon Sep 17 00:00:00 2001 From: Daniel Reis Date: Thu, 16 Apr 2015 22:32:28 +0100 Subject: [PATCH] Disable logging while in shell Fixes #150 --- shell/cli/shell.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell/cli/shell.py b/shell/cli/shell.py index 632afc304..9f14012c1 100644 --- a/shell/cli/shell.py +++ b/shell/cli/shell.py @@ -18,6 +18,7 @@ from __future__ import print_function import code +import logging import os import signal import sys @@ -62,6 +63,7 @@ class Shell(Command): ' to get one.') for i in sorted(local_vars): print('%s: %s' % (i, local_vars[i])) + logging.disable(logging.CRITICAL) Console(locals=local_vars).interact() def shell(self, dbname):