from pyramid.view import view_config
+import pgwui_core.utils
from pgwui_core.core import (
UploadEngine,
NoTransactionEngine,
SQLData,
NoOpProcessor,
ExecuteSQL,
- format_exception,
)
from pgwui_core.exceptions import AuthFailError
def log_sql_failure(self, msg, ex):
'''Write a failture message to the log when executing sql.'''
- log.info('{0}: {1}{2}'
- .format(msg, self.to_db_detail(), format_exception(ex)))
+ log.info(f'{msg}: {self.to_db_detail()}'
+ f'{pgwui_core.utils.format_exception(ex)}')
@attr.s