From 4a77a1e99fdd5efedccc6e7395460ddad5dbcd94 Mon Sep 17 00:00:00 2001 From: amyangfei Date: Tue, 29 Sep 2020 13:50:17 +0800 Subject: [PATCH] ticdc: add HTTP API for adjusting log level (#4560) * ticdc: add HTTP API for adjusting log level * Update ticdc/manage-ticdc.md * Update ticdc/manage-ticdc.md Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com> --- ticdc/manage-ticdc.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ticdc/manage-ticdc.md b/ticdc/manage-ticdc.md index a62477a7234e..9f9c521badb7 100644 --- a/ticdc/manage-ticdc.md +++ b/ticdc/manage-ticdc.md @@ -583,6 +583,16 @@ curl -X POST http://127.0.0.1:8300/capture/owner/move_table -d 'cf-id=cf060953-0 } ``` +### 动态调整 TiCDC server 日志级别 + +{{< copyable "shell-regular" >}} + +```shell +curl -X POST -d '"debug"' http://127.0.0.1:8301/admin/log +``` + +`POST` 参数表示新的日志级别,支持 [zap 提供的日志级别](https://godoc.org/go.uber.org/zap#UnmarshalText):"debug"、"info"、"warn"、"error"、"dpanic"、"panic"、"fatal"。该接口参数为 JSON 编码,需要注意引号的使用:`'"debug"'`。 + ## 同步任务配置文件描述 本部分详细介绍了同步任务的配置。