Skip to content

Commit

Permalink
Merge pull request OCA#151 from dreispt/shell-nolog
Browse files Browse the repository at this point in the history
Disable logging while in shell
  • Loading branch information
hbrunn committed Apr 17, 2015
2 parents cc9f589 + d395740 commit 701aaba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shell/cli/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

from __future__ import print_function
import code
import logging
import os
import signal
import sys
Expand Down Expand Up @@ -62,6 +63,7 @@ def console(self, local_vars):
' 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):
Expand Down

0 comments on commit 701aaba

Please sign in to comment.