cubicweb/schema.py
changeset 12575 30d0e27a1d52
parent 12567 26744ad37953
--- a/cubicweb/schema.py	Fri Apr 12 13:52:17 2019 +0200
+++ b/cubicweb/schema.py	Fri Apr 12 11:56:13 2019 +0200
@@ -224,8 +224,8 @@
             raise RQLSyntaxError(expression)
         for mainvar in mainvars:
             if len(self.snippet_rqlst.defined_vars[mainvar].references()) < 2:
-                _LOGGER.warn('You did not use the %s variable in your RQL '
-                             'expression %s', mainvar, self)
+                _LOGGER.warning('You did not use the %s variable in your RQL '
+                                'expression %s', mainvar, self)
         # graph of links between variables, used by rql rewriter
         self.vargraph = vargraph(self.snippet_rqlst)
         # useful for some instrumentation, e.g. localperms permcheck command