Commits

Chris McDonough  committed 74295d3

Don't log in static predicate.

  • Participants
  • Parent commits 4455cc7

Comments (0)

Files changed (1)

File pyramid_sqla/static.py

         self.subdir = subdir
 
     def __call__(self, info, request):
-        import logging
-        log = logging.getLogger(__name__)
-        log.setLevel(0)
         subpath = info["match"]["subpath"]
-        log.debug("subpath is %r", subpath)
         if not subpath:
-            log.debug("no subpath, returning false")
             return False
         parts = [self.subdir]
         parts.extend(subpath)
         resource_name = "/".join(parts)
-        log.debug("package=%r, resource_name=%r", self.package, resource_name)
         return pkg_resources.resource_exists(self.package, resource_name)