Skip to content

检查error大小,最大限制为1024bytes - #702

Merged
wonderflow merged 1 commit into
qiniu:masterfrom
redHJ:pdr-7066
Aug 9, 2018
Merged

wonderflow merged 1 commit into
qiniu:masterfrom
redHJ:pdr-7066

Conversation

@redHJ

@redHJ redHJ commented Aug 9, 2018 •

Copy link
Copy Markdown
Collaborator

@wonderflow
@unknwon

  1. 在所有调 stats()的地方检查
  2. 在runner中取last error的地方检查

Comment thread utils/models/utils.go Outdated
NewKey string
}

func CheckErrorSize(err string) string {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

叫 TruncateErrorSize 好点

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

厉害~修了

@wonderflow

Copy link
Copy Markdown
Contributor

LGTM

@wonderflow
wonderflow merged commit 2c65f3c into qiniu:master Aug 9, 2018
@redHJ
redHJ deleted the pdr-7066 branch January 24, 2019 09:02
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.

3 participants