Skip to content

Commit 15c5a0a

Browse files
committed
Modified the document.save...() logging to give the document name
- Legacy-Id: 18702
1 parent dbcb543 commit 15c5a0a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/doc/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -720,12 +720,12 @@ def save_with_history(self, events):
720720
self._has_an_event_so_saving_is_allowed = True
721721
self.save()
722722
del self._has_an_event_so_saving_is_allowed
723-
log.log(f'{time.time()-mark:.3f} seconds to save Document object')
723+
log.log(f'{time.time()-mark:.3f} seconds to save {self.name} Document')
724724

725725
mark = time.time()
726726
from ietf.doc.utils import save_document_in_history
727727
save_document_in_history(self)
728-
log.log(f'{time.time()-mark:.3f} seconds to save Document in history')
728+
log.log(f'{time.time()-mark:.3f} seconds to save {self.name} DocHistory')
729729

730730
def save(self, *args, **kwargs):
731731
# if there's no primary key yet, we can allow the save to go

0 commit comments

Comments
 (0)