--- a/cubicweb/pyramid/bwcompat.py Mon Nov 18 12:41:44 2019 +0100
+++ b/cubicweb/pyramid/bwcompat.py Tue Oct 08 23:11:19 2019 +0200
@@ -34,7 +34,7 @@
import cubicweb.web
from cubicweb.web.application import CubicWebPublisher
-
+from cubicweb.debug import emit_to_debug_channel
from cubicweb.web import LogOut, PublishException
from cubicweb.pyramid.core import cw_to_pyramid
@@ -93,6 +93,13 @@
ctrlid, req.path, controller,
inspect.getsourcefile(controller.__class__),
inspect.getsourcelines(controller.__class__)[1])
+ emit_to_debug_channel("controller", {
+ "kind": ctrlid,
+ "request": req,
+ "path": req.path,
+ "controller": controller,
+ "config": self.appli.repo.config,
+ })
except cubicweb.NoSelectableObject:
log.warn("WARNING '%s' unauthorized request", req.path)
raise httpexceptions.HTTPUnauthorized(