Commit Graph

26 Commits

Author SHA1 Message Date
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
50e98f427e config: add validation for configuration (#5864) 2018-03-06 14:56:28 +08:00
12c87929b8 *:fix some golint && ineffassign && misspell to improve GoReport Result (#5867) 2018-02-23 19:31:05 +08:00
04960d4fe9 log_util:let slow query entry keep order (#5732) 2018-01-28 17:26:38 +08:00
8b149c3323 Prealloc / collides with package name (#5560) 2018-01-05 19:15:54 +08:00
f1e89cde19 *: use lower-case of github.com/sirupsen/logrus (#5400)
*: rename github.com/Sirupsen/logrus to github.com/sirupsen/logrus

* vendor: update pd

* vendor: update github.com/pingcap/tipb/go-mysqlx
2017-12-14 16:25:58 +08:00
07e05e815d ddl, util: Add highlight to log (#4861)
* ddl, util: add highlight to log
2017-10-23 04:04:52 -05:00
7afae3f89c *: support write slow query log into seperate files (#4804) 2017-10-20 14:22:10 +08:00