Connecting to tidb-loadbalance continuously prints logs

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 接入tidb-loadbalance一直打印日志

| username: SummerGu

[Test Environment for TiDB] Testing
[TiDB Version] v7.5
[Encountered Issue: Phenomenon and Impact]
This is part of the pom.xml file

  <!--jdbc-->
        <dependency>
            <groupId>io.github.lastincisor</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>8.0.29-tidb-1.0.0</version>
        </dependency>
        <dependency>
            <groupId>io.github.lastincisor</groupId>
            <artifactId>tidb-loadbalance</artifactId>
            <version>0.0.6</version>
        </dependency>
        <dependency>
            <groupId>com.taosdata.jdbc</groupId>
            <artifactId>taos-jdbcdriver</artifactId>
            <version>3.0.0</version>
            <exclusions>
                <exclusion>
                    <artifactId>commons-codec</artifactId>
                    <groupId>commons-codec</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>slf4j-api</artifactId>
                    <groupId>org.slf4j</groupId>
                </exclusion>
                <exclusion>
                    <artifactId>guava</artifactId>
                    <groupId>com.google.guava</groupId>
                </exclusion>
            </exclusions>
        </dependency>

It keeps printing related connection information in the logs.


How can I turn it off?

| username: xfworld | Original post link

Take a look at what logging component is being used; it can be turned off through configuration. Generally, log printing is categorized by levels, such as debug, warning, info, error…

| username: zhaokede | Original post link

Is the log level set to info?

| username: shigp_TIDBER | Original post link

Check what logging component is being used; it can be turned off through configuration.
Generally, log printing is categorized by levels, such as debug, warning, info, error.

| username: 有猫万事足 | Original post link

The location of the tidb-loadbalance code repository is here: GitHub - pingcap/tidb-loadbalance at 0.0.6

I searched and did not find the word “report.”
I suggest searching for “report” in your own code to see if you can find anything.

| username: YuchongXU | Original post link

It can be ignored.