diff --git a/product/ERP5Type/Cache.py b/product/ERP5Type/Cache.py
index 33c1252723b9b397b5547dfd24adfc85929bb538..4ddb2e7eacbfd6bbbdf5b4ecabc0ae43760b3c07 100644
--- a/product/ERP5Type/Cache.py
+++ b/product/ERP5Type/Cache.py
@@ -32,6 +32,7 @@ from AccessControl.SecurityInfo import allow_class
 from CachePlugins.BaseCache import CachedMethodError
 from zLOG import LOG, WARNING
 from Products.ERP5Type.TransactionalVariable import getTransactionalVariable
+from traceback import extract_stack
 
 DEFAULT_CACHE_SCOPE = 'GLOBAL'
 DEFAULT_CACHE_FACTORY = 'erp5_ui_short'
@@ -264,7 +265,8 @@ def disableReadOnlyTransactionCache(context):
 
 def clearCache(cache_factory_list=(DEFAULT_CACHE_FACTORY,)):
   """Clear specified cache factory list."""
-  LOG("Cache.clearCache", \
+  filename, line, function, text = extract_stack(limit=2)[0]
+  LOG("%s:%i" % (filename, line), \
       WARNING, \
       "Global function clearCache() is deprecated. Use portal_caches.clearCache() instead.")
   cache_storage = CachingMethod.factories