add default configuration for logging module
This commit is contained in:
parent
9329df5b43
commit
690d547243
1 changed files with 2 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ import sys, tty, termios, os
|
||||||
import re
|
import re
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from inspect import getargspec
|
from inspect import getargspec
|
||||||
|
import logging
|
||||||
|
|
||||||
from weboob import Weboob
|
from weboob import Weboob
|
||||||
from weboob.modules import BackendsConfig
|
from weboob.modules import BackendsConfig
|
||||||
|
|
@ -35,6 +36,7 @@ class BaseApplication(object):
|
||||||
CONFDIR = os.path.join(os.path.expanduser('~'), '.weboob')
|
CONFDIR = os.path.join(os.path.expanduser('~'), '.weboob')
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
|
||||||
self.weboob = Weboob(self.APPNAME)
|
self.weboob = Weboob(self.APPNAME)
|
||||||
self.config = None
|
self.config = None
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue