Commit Graph

57 Commits

Author SHA1 Message Date
9c64224c49 *: Reduce data inconsistencies (#31547)
ref pingcap/tidb#26833
2022-02-11 13:51:36 +08:00
c30e8320d8 *: correct use require (#31904)
ref pingcap/tidb#31716
2022-02-07 18:11:35 +08:00
3de13842b3 test: control log level with environment variables (#30871) 2021-12-24 17:03:48 +08:00
7a5a8bf057 logutil: add testcase for SlowQueryLogger.MaxDays/MaxSize/MaxBackups (#30316) 2021-12-08 12:57:56 +08:00
d83ee8cfda executor,util: write slow query to slow log no matter what log level (#30461) 2021-12-07 20:49:56 +08:00
46de14d7a1 [logutil]: Fix MaxDays and MaxBackups not working for slow-query-logger (#27625) 2021-11-18 18:15:47 +08:00
680ea4bded *: remove remaining file when exit for TestGlobalLoggerReplace (#29347) 2021-11-16 01:35:06 +08:00
c9f33cbd88 session: add session var to update global logger max days (#27595) 2021-10-27 10:14:48 +08:00
680de922ed *: fix license header (#28085) 2021-09-17 22:26:41 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
ed88b54fc8 util/logutil: Remove useless grpc log in production (#25454) 2021-08-16 13:09:59 +08:00
9f1c6b80f2 util/logutil: migrate to testify (#26322) 2021-07-21 12:59:35 +08:00
014005ab68 util/logutil: remove InitZapLogger (#26315) 2021-07-17 17:39:33 +08:00
bca2f7250f logutil: InitLogger as a more abstract method, deprecated InitZapLogger (#25381) 2021-06-15 10:54:37 +08:00
bbd5b32c2f *: clean up the logging component (#23534) 2021-06-01 10:43:37 +08:00
437a5f6251 *: fix some typos (#24418) 2021-05-07 11:03:53 +08:00
890a358325 store/tikv: resolve logutil dependency (#22566)
Signed-off-by: disksing <i@disksing.com>
2021-01-28 17:26:01 +08:00
272f964031 executor: support global kill (#17649) 2020-10-27 19:39:20 +08:00
4745e1586e go.mod: update br version to resolve cyclic dependency (#20455) 2020-10-15 12:00:36 +08:00
92a04ef024 trace: tee logs to runtime/trace output (#19994) 2020-09-23 18:45:38 +08:00
43764a59b7 RFC + Support of BACKUP and RESTORE statements (#15274) 2020-04-30 19:35:56 +08:00
62e4d588a8 Makefile: add unconvert to inspect unnecessary type convert (#16549) 2020-04-22 23:01:59 +08:00
30e2bdcc52 *: remove some debug print in test files (#14977) 2020-02-28 12:52:59 +08:00
6b0972957c config: change enable-slow-log to boolean (#14864) 2020-02-20 15:37:32 +08:00
3a255c5518 *: fix unit tests on the windows platform (#14826) 2020-02-18 15:23:17 +08:00
c39317e890 executor: support turn on/off slow-log by variables (#14016) 2019-12-18 10:48:46 +08:00
0e0faeeb30 *: use filepath instead of path for file operations (#13590) 2019-11-21 13:20:37 +08:00
b8cd65714f *: record and print the plan in slow log. (#12179) 2019-10-17 22:13:19 +08:00
455b2d33e4 config: remove the log-rotate config (#12594)
log-rotate defaults to true and there is not way to turn off it.
provide it in the config file is misleading
2019-10-14 17:13:57 +08:00
1f3af1e4d5 log: support reloading tidb-query-max-log-len after modified (#12491) 2019-10-12 16:42:32 +08:00
cbf4ddc9e2 *: improve the format of the error log (#12155) 2019-09-12 13:30:15 +08:00
31a8e2192e store/tikv,util/logutil: add a function to convert proto.Message to hex format (#11550) 2019-08-09 17:13:32 +08:00
1595c0101e *: replace context.WithValue string key to typed struct{} key (#11675) 2019-08-09 14:11:48 +08:00
036e7e207d *: support new 'log' format for trace (#11681) 2019-08-09 12:43:33 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
f8d74d0682 util/logutil: add some tests to improve test coverage (#10479) 2019-05-31 16:28:11 +08:00
36bb1ae89a log: change slow log time format to compatible with pt-query-digest (#10290) 2019-04-30 09:35:52 +08:00
0cafb707ee ddl: using pingcap/log and unify the log format (#9659) 2019-03-19 14:54:42 +08:00
1ef9dae1ac Fixed TestSlowQueryZapLogger to work with negative UTC offset timezones (#9787) 2019-03-19 08:55:10 +08:00
f738ba24ad executor: replace logger with zap logger (#9521) 2019-03-14 15:14:38 +08:00
a2d4bd1df0 log: temporary remove recvTs from context log (#9673) 2019-03-12 17:20:42 +08:00
80110fbf78 *: refactor slow log format and parse slow query log to SLOW_QUERY table. (#9290) 2019-03-11 14:42:29 +08:00
4188ae19c0 log,server: add contextual log util & test it in conn.go (#9548) 2019-03-09 11:23:45 +08:00
6136ab14cf *: start replacing logger with zap logger (#9279) 2019-02-15 16:43:47 +08:00
6ccfec6d2e *: add a variable tidb_query_log_max_len to set the max length of the query string in the log dynamically (#8183) 2018-11-06 11:25:11 +08:00
ec693ce502 *: add a variable tidb_slow_log_threshold to set the slow log threshold dynamically (#8094) 2018-11-05 14:54:07 +08:00
b7f431e5c3 *: migrate dependency management to Go1.11 module (#8054) 2018-11-01 20:54:22 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
a90ee13c9f config: update config template (#5963)
* update config template
2018-03-07 10:56:45 +08:00