Browse Source

Disable logging while in shell

Fixes #150
pull/151/head
Daniel Reis 10 years ago
parent
commit
d395740078
  1. 2
      shell/cli/shell.py

2
shell/cli/shell.py

@ -18,6 +18,7 @@
from __future__ import print_function from __future__ import print_function
import code import code
import logging
import os import os
import signal import signal
import sys import sys
@ -62,6 +63,7 @@ class Shell(Command):
' to get one.') ' to get one.')
for i in sorted(local_vars): for i in sorted(local_vars):
print('%s: %s' % (i, local_vars[i])) print('%s: %s' % (i, local_vars[i]))
logging.disable(logging.CRITICAL)
Console(locals=local_vars).interact() Console(locals=local_vars).interact()
def shell(self, dbname): def shell(self, dbname):

Loading…
Cancel
Save