-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: logbypass on worker threads #154
Conversation
legendecas
commented
Mar 22, 2022
•
edited
Loading
edited
- define the log format
Codecov Report
@@ Coverage Diff @@
## master #154 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 9 9
Lines 296 297 +1
=========================================
+ Hits 296 297 +1
Continue to review full report at Codecov.
|
test/log.test.js
Outdated
@@ -42,7 +42,8 @@ function parseXprofilerLog(type, content) { | |||
obj.detail = matched[4]; | |||
} else { | |||
obj.version = matched[4]; | |||
obj.detail = matched[5]; | |||
obj.tid = matched[5]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tid 直接放 pid 后面吧,这个本来也准备 break 发 2.0 了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tid 不是所有日志都会打印的,这样可选的项目放在中间的位置会比较难 parse。或者把 version 提前?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果是这样的话,那先放最后好了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
现在这个布局的话,已经产生 break 了吧?
也就是还是需要发 2.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tid
在什么情况下可能没有呢?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
更新了,现在所有的日志都会有 tid,默认为 0