linagora / tmail-backend

GNU Affero General Public License v3.0
36 stars 17 forks source link

ISSUE-640 Apisix - change log level of plugin runner for prod profile #940

Closed vttranlina closed 5 months ago

vttranlina commented 5 months ago

resolve https://github.com/linagora/tmail-backend/issues/935

chibenwa commented 5 months ago

Can you share the logs produced by this?

vttranlina commented 5 months ago

Can you share the logs produced by this?

Log when I run test.sh

2024/02/27 05:35:32 [warn] 62#62: *3676403 [lua] plugin.lua:1098: run_plugin(): ext-plugin-pre-req exits with http status code 401, client: 172.22.0.1, server: _, request: "GET /oidc/jmap/session HTTP/1.1", host: "apisix.example.com:9080"
2024-02-27T05:35:34.742382722Z 172.22.0.1 - - [27/Feb/2024:05:35:31 +0000] apisix.example.com:9080 "GET /oidc/jmap/session HTTP/1.1" 200 6063 0.627 "-" "curl/8.2.1" 172.22.0.5:80 200 0.254 "http://apisix.example.com:9080/jmap/session"
2024-02-27T05:35:35.825675765Z 172.22.0.1 - - [27/Feb/2024:05:35:32 +0000] apisix.example.com:9080 "GET /oidc/jmap/session HTTP/1.1" 401 255 0.005 "-" "curl/8.2.1" - - - "http://apisix.example.com:9080"

Before

Print all log level debug from tmail apisix plugin runner

After

Log level from info