mirror of
https://github.com/tiny-craft/tiny-rdm.git
synced 2025-05-12 22:58:06 +08:00
fix: try unescape client name in slow log
doc: update screenshots
This commit is contained in:
parent
dc39b5ea3e
commit
75abd66c46
@ -1659,9 +1659,14 @@ func (c *connectionService) GetSlowLogs(connName string, db int, num int64) (res
|
||||
}
|
||||
|
||||
list := sliceutil.Map(logs, func(i int) slowLogItem {
|
||||
var name string
|
||||
var e error
|
||||
if name, e = url.QueryUnescape(logs[i].ClientName); e != nil {
|
||||
name = logs[i].ClientName
|
||||
}
|
||||
return slowLogItem{
|
||||
Timestamp: logs[i].Time.UnixMilli(),
|
||||
Client: logs[i].ClientName,
|
||||
Client: name,
|
||||
Addr: logs[i].ClientAddr,
|
||||
Cmd: sliceutil.JoinString(logs[i].Args, " "),
|
||||
Cost: logs[i].Duration.Milliseconds(),
|
||||
|
Binary file not shown.
Before ![]() (image error) Size: 362 KiB After ![]() (image error) Size: 366 KiB ![]() ![]() |
Binary file not shown.
Before ![]() (image error) Size: 358 KiB After ![]() (image error) Size: 365 KiB ![]() ![]() |
Binary file not shown.
Before ![]() (image error) Size: 374 KiB After ![]() (image error) Size: 378 KiB ![]() ![]() |
Binary file not shown.
Before ![]() (image error) Size: 372 KiB After ![]() (image error) Size: 377 KiB ![]() ![]() |
Loading…
x
Reference in New Issue
Block a user