From 4207124c5264e28dbacadee913b5ebd4fe338076 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 27 Nov 2016 16:16:34 +0100 Subject: [PATCH] add debug output when known url was triggered Signed-off-by: Nico Schottelius --- cdist/trigger.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cdist/trigger.py b/cdist/trigger.py index 9ebd92a5..c237db08 100644 --- a/cdist/trigger.py +++ b/cdist/trigger.py @@ -93,11 +93,12 @@ class TriggerHttp(http.server.BaseHTTPRequestHandler): self.cdistargs = self.server.cdistargs - m = re.match("^/(?Pcdist|file)/(?Pcreate|delete|config|install)/", "/cdist/install/").group('subsystem') + m = re.match("^/(?Pcdist|file)/(?Pcreate|delete|config|install)/", "/cdist/install/") if m: subsystem = m.group('subsystem') action = m.group('action') + log.debug("Calling {} -> {}".format(subsystem, action)) else: code = 404