Kong Request Transformer template value debugging

62 views Asked by At

I need to extend the functionality of a current Request Tranformer en Kong. It currently has a template value that parses certain captured values and overrides the uri of the request. Something like this:

$((function() ... // do things with captured values // ...)())

It's been working fine for quite a while, but now we need to debug a border case. The issue, is that we can't reproduce the error localy. Here my question arises: is there any way to log something inside the template value? When I do print() the template fails, and an error is shown in the proxy logs. I tried just in case with kong.log()

0

There are 0 answers