mirror of
https://github.com/NaN-tic/trytond-account_payment_es_csb_32.git
synced 2023-12-14 06:23:05 +01:00
Improve logging
issue4458
This commit is contained in:
parent
2aae219c21
commit
81b34bbd2a
1 changed files with 3 additions and 1 deletions
|
@ -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__ = [
|
||||
|
|
Loading…
Reference in a new issue