Github user mxmrlv commented on a diff in the pull request:
https://github.com/apache/incubator-ariatosca/pull/129#discussion_r115972098
--- Diff: aria/logger.py ---
@@ -114,14 +114,13 @@ def create_console_log_handler(level=logging.DEBUG,
formatter=None):
return console
-def create_sqla_log_handler(session, engine, log_cls, execution_id,
level=logging.DEBUG):
+def create_sqla_log_handler(model, log_cls, execution_id,
level=logging.DEBUG):
# This is needed since the engine and session are entirely new we need
to reflect the db
# schema of the logging model into the engine and session.
- log_cls.__table__.create(bind=engine, checkfirst=True)
+ log_cls.__table__.create(bind=model.log._engine, checkfirst=True)
--- End diff --
remove?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---