Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jschwinger233
Copy link
Member

@jschwinger233 jschwinger233 commented Oct 28, 2021

  1. CreateWorkload 里的用户请求用 compact 模式, 打印在一行
  2. LinuxFile 和 RawArgs 这两个 bytes 字段, 实现了 String() 和 LitterDump() 方法, 避免输出 raw bytes, 只输出长度和其他信息

@jschwinger233
Copy link
Member Author

@DuodenumL

@jschwinger233 jschwinger233 changed the title [WIP] Fix issue of too many logs due to raw bytes Fix issue of too many logs due to raw bytes Oct 28, 2021
types/options.go Outdated

// LitterDump fro litter.Dumper
func (r RawArgs) LitterDump(w io.Writer) {
w.Write([]byte(string(r))) // nolint:errcheck // here can't import core/log due to cycle dependence
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里应该用r就行,不用转两遍?

@jschwinger233 jschwinger233 changed the title Fix issue of too many logs due to raw bytes [WIP] Fix issue of too many logs due to raw bytes Oct 28, 2021
@jschwinger233 jschwinger233 changed the title [WIP] Fix issue of too many logs due to raw bytes Fix issue of too many logs due to raw bytes Oct 28, 2021
@jschwinger233 jschwinger233 merged commit 5678660 into projecteru2:master Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants