forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
log: change slow log time format to compatible with pt-query-digest (p…
- Loading branch information
1 parent
a61225c
commit 9557708
Showing
5 changed files
with
36 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -296,7 +296,7 @@ func (s *testSuite) TestSlowQuery(c *C) { | |
f, err := os.OpenFile(slowLogFileName, os.O_CREATE|os.O_WRONLY, 0644) | ||
c.Assert(err, IsNil) | ||
defer os.Remove(slowLogFileName) | ||
_, err = f.Write([]byte(`# Time: 2019-02-12-19:33:56.571953 +0800 | ||
_, err = f.Write([]byte(`# Time: 2019-02-12T19:33:56.571953+08:00 | ||
# Txn_start_ts: 406315658548871171 | ||
# User: [email protected] | ||
# Conn_ID: 6 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -804,7 +804,7 @@ const ( | |
|
||
// SlowLogFormat uses for formatting slow log. | ||
// The slow log output is like below: | ||
// # Time: 2019-02-12-19:33:56.571953 +0800 | ||
// # Time: 2019-04-28T15:24:04.309074+08:00 | ||
// # Txn_start_ts: 406315658548871171 | ||
// # User: [email protected] | ||
// # Conn_ID: 6 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters