From 15c5a0ab8baf7b568d2307c7d1c503fe71368a44 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Tue, 17 Nov 2020 05:08:42 +0000 Subject: [PATCH] Modified the document.save...() logging to give the document name - Legacy-Id: 18702 --- ietf/doc/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ietf/doc/models.py b/ietf/doc/models.py index cf8aa5355..93625cd15 100644 --- a/ietf/doc/models.py +++ b/ietf/doc/models.py @@ -720,12 +720,12 @@ class Document(DocumentInfo): self._has_an_event_so_saving_is_allowed = True self.save() del self._has_an_event_so_saving_is_allowed - log.log(f'{time.time()-mark:.3f} seconds to save Document object') + log.log(f'{time.time()-mark:.3f} seconds to save {self.name} Document') mark = time.time() from ietf.doc.utils import save_document_in_history save_document_in_history(self) - log.log(f'{time.time()-mark:.3f} seconds to save Document in history') + log.log(f'{time.time()-mark:.3f} seconds to save {self.name} DocHistory') def save(self, *args, **kwargs): # if there's no primary key yet, we can allow the save to go