diff --git a/data/model/log.py b/data/model/log.py index 5e4afd25f..339a87332 100644 --- a/data/model/log.py +++ b/data/model/log.py @@ -7,7 +7,7 @@ from datetime import datetime, timedelta from cachetools import lru_cache import data -from data.database import LogEntry, LogEntryKind, User, RepositoryActionCount, db +from data.database import LogEntry, LogEntryKind, User, RepositoryActionCount, db, LogEntry2 from data.model import config, user, DataModelException logger = logging.getLogger(__name__) @@ -137,7 +137,7 @@ def log_action(kind_name, user_or_organization_name, performer=None, repository= } try: - LogEntry.create(**log_data) + LogEntry2.create(**log_data) except PeeweeException as ex: strict_logging_disabled = config.app_config.get('ALLOW_PULLS_WITHOUT_STRICT_LOGGING') if strict_logging_disabled and kind_name in ACTIONS_ALLOWED_WITHOUT_AUDIT_LOGGING: