diff --git a/product/ERP5/Document/TextDocument.py b/product/ERP5/Document/TextDocument.py
index 891bb58551df6e1f165b1d45c357e7fe385a6c8d..cf408b49bc96c3dd32a7e96fb261fc42d86292ee 100644
--- a/product/ERP5/Document/TextDocument.py
+++ b/product/ERP5/Document/TextDocument.py
@@ -164,7 +164,7 @@ class TextDocument(Document, TextContent):
         except AttributeError:
           LOG('TextDocument', WARNING, 'could not get the substitution'
               ' mapping method %s from %r, so the content will not be'
-              ' substituted.' % (method_id, self))
+              ' substituted.' % (method_id, self.getRelativeUrl()))
           return text
 
         is_str = isinstance(text, str)