Skip to content

Commit

Permalink
ticdc: add HTTP API for adjusting log level (pingcap#4560)
Browse files Browse the repository at this point in the history
* ticdc: add HTTP API for adjusting log level

* Update ticdc/manage-ticdc.md

* Update ticdc/manage-ticdc.md

Co-authored-by: TomShawn <[email protected]>
  • Loading branch information
amyangfei and TomShawn authored Sep 29, 2020
1 parent 4728803 commit 4a77a1e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ticdc/manage-ticdc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"'`

## 同步任务配置文件描述

本部分详细介绍了同步任务的配置。
Expand Down

0 comments on commit 4a77a1e

Please sign in to comment.