Browse Source

Merge pull request #151 from dreispt/shell-nolog

Disable logging while in shell
pull/156/head
Holger Brunn 9 years ago
parent
commit
701aaba16d
  1. 2
      shell/cli/shell.py

2
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):

Loading…
Cancel
Save