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 2021/04/27 08:06:59 UTC

[GitHub] [apisix] Firstsawyou commented on issue #4138: request help: bad argument #2 to 'warn' (expected table to have __tostring metamethod)

Firstsawyou commented on issue #4138:
URL: https://github.com/apache/apisix/issues/4138#issuecomment-827406877


   >  core.log.warn("headers_map: ", headers_map)
   
   Because the headers_map type is a table, not a string. Therefore, it cannot be printed out directly, it needs to be encoded first. You should debug like this:
   
   ```
   core.log.warn("headers_map: ", core.json.encode(headers_map))
   ```


-- 
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