Skip to content

Commit

Permalink
Print handler name and route when detecting URL map
Browse files Browse the repository at this point in the history
  • Loading branch information
lpereira committed Mar 28, 2024
1 parent 10c0f9a commit 8685940
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/lwan.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,9 @@ void lwan_detect_url_map(struct lwan *l)
if (!iter->route)
continue;

lwan_status_debug("Using handler `%s' for route `%s'",
iter->name, iter->route);

const struct lwan_url_map map = {.prefix = iter->route,
.handler = iter->handler};
register_url_map(l, &map);
Expand Down

0 comments on commit 8685940

Please sign in to comment.