You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2021/06/01 04:24:39 UTC

[apisix-java-plugin-runner] branch main updated: docs: add doc about log level (#23)

This is an automated email from the ASF dual-hosted git repository.

spacewander pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/apisix-java-plugin-runner.git


The following commit(s) were added to refs/heads/main by this push:
     new 8ce0220  docs: add doc about log level (#23)
8ce0220 is described below

commit 8ce0220c3cd85891a18056210fe01a66d2fc924a
Author: tzssangglass <tz...@gmail.com>
AuthorDate: Tue Jun 1 12:24:33 2021 +0800

    docs: add doc about log level (#23)
---
 docs/how-it-works.md                               | 10 ++++++++++
 runner-starter/src/main/resources/application.yaml |  6 +++---
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/docs/how-it-works.md b/docs/how-it-works.md
index 2ddf57c..1732417 100644
--- a/docs/how-it-works.md
+++ b/docs/how-it-works.md
@@ -47,6 +47,16 @@ in the `error.log` of APISIX, you can change the permissions of this file for de
 chmod 777 /tmp/runner.sock
 ```
 
+To get more detailed debugging information, you can modify the output level of the log.
+Configure the log level in `runner-starter/src/main/resources/application.yaml`, as below
+(any changes to the project files need to be re-executed `./mvnw package package`)
+
+```yaml
+logging:
+  level:
+    root: debug
+```
+
 ### Run
 
 No environment variables need to be set in Run mode, execute
diff --git a/runner-starter/src/main/resources/application.yaml b/runner-starter/src/main/resources/application.yaml
index 4e681b1..0c6c50c 100644
--- a/runner-starter/src/main/resources/application.yaml
+++ b/runner-starter/src/main/resources/application.yaml
@@ -12,9 +12,9 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-logging:
-  level:
-    root: debug
+#logging:
+#  level:
+#    root: debug
 cache.config:
   expired: ${APISIX_CONF_EXPIRE_TIME}
   capacity: 1000