Improve logging

issue4458
This commit is contained in:
resteve 2015-08-12 01:39:04 +02:00
parent 2aae219c21
commit 81b34bbd2a

View file

@ -6,12 +6,14 @@ from trytond.model import fields
from trytond.pool import PoolMeta
from trytond.pyson import Eval
import logging
try:
from retrofix import Record, write, c32
except ImportError:
logger = logging.getLogger(__name__)
message = ('Unable to import retrofix library.\n'
'Please install it before install this module.')
logging.getLogger('account_payment_es_csb_32').error(message)
logger.error(message)
raise Exception(message)
__all__ = [