Add some debug logging to identify how request is matched to a resource handler function