add debug output when known url was triggered
Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>
This commit is contained in:
parent
ff31dcada0
commit
4207124c52
1 changed files with 2 additions and 1 deletions
|
@ -93,11 +93,12 @@ class TriggerHttp(http.server.BaseHTTPRequestHandler):
|
||||||
|
|
||||||
self.cdistargs = self.server.cdistargs
|
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:
|
if m:
|
||||||
subsystem = m.group('subsystem')
|
subsystem = m.group('subsystem')
|
||||||
action = m.group('action')
|
action = m.group('action')
|
||||||
|
log.debug("Calling {} -> {}".format(subsystem, action))
|
||||||
else:
|
else:
|
||||||
code = 404
|
code = 404
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue