Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions netbox_branching/models/changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def apply(self, branch, using=DEFAULT_DB_ALIAS, logger=None):
"""
logger = logger or logging.getLogger('netbox_branching.models.ObjectChange.apply')
model = self.changed_object_type.model_class()
logger.info(f'Applying change {self} using {using}')
logger.info(f'Applying change {self.pk} using {using} ({self})')

# Run data migrators
self.migrate(branch)
Expand Down Expand Up @@ -79,7 +79,7 @@ def undo(self, branch, using=DEFAULT_DB_ALIAS, logger=None):
"""
logger = logger or logging.getLogger('netbox_branching.models.ObjectChange.undo')
model = self.changed_object_type.model_class()
logger.info(f'Undoing change {self} using {using}')
logger.info(f'Undoing change {self.pk} using {using} ({self})')

# Run data migrators
self.migrate(branch, revert=True)
Expand Down