You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/03/03 09:44:21 UTC
[GitHub] [incubator-apisix] membphis commented on issue #1186: request help:
How to test the log_utils?
membphis commented on issue #1186: request help: How to test the log_utils?
URL: https://github.com/apache/incubator-apisix/issues/1186#issuecomment-593858899
You can take a look at this test case:
https://github.com/apache/incubator-apisix/blob/master/t/core/log.t#L31
If you want to add some mock function, you can do like this:
https://github.com/apache/incubator-apisix/blob/0ee3c4be0e4616dcf10e8c0f6a68a74795879fea/lua/apisix/plugins/prometheus.lua#L59
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services