add debug output when known url was triggered

Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>
This commit is contained in:
Nico Schottelius 2016-11-27 16:16:34 +01:00
parent ff31dcada0
commit 4207124c52

View file

@ -93,11 +93,12 @@ class TriggerHttp(http.server.BaseHTTPRequestHandler):
self.cdistargs = self.server.cdistargs
m = re.match("^/(?P<subsystem>cdist|file)/(?P<action>create|delete|config|install)/", "/cdist/install/").group('subsystem')
m = re.match("^/(?P<subsystem>cdist|file)/(?P<action>create|delete|config|install)/", "/cdist/install/")
if m:
subsystem = m.group('subsystem')
action = m.group('action')
log.debug("Calling {} -> {}".format(subsystem, action))
else:
code = 404