Skip to content
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

Made some refactor, fix some bugs #42

Merged
merged 8 commits into from
Jan 26, 2016
Merged

Conversation

alexlee002
Copy link
Contributor

Hi Michael,

I found out and fixed the bug that caused the serious performance of filtering logs.
Please review and merge my PR, thanks :)

Alex

AlexLee and others added 8 commits February 10, 2015 14:41
… bug that confused me: if I DO NOT use the colorful log, then some of the tail logs won't be displayed, anyone could help me?
Seperate the big file to some small files, it maybe easier to maintain.

*** I don't know why MCDVTTextStorage must use method_exchangeImplementations to hook the original method,
not like others.
*** I don't known why this version's Log filter is so bad.
…should not remove the pattern object in -[MCLog searchFieldDidEndEditing:] but in -[MCLogIDEConsoleArea _shouldAppendItem:] when searchFile.text is empty
 I found the cause of Issue yuhua-chen#39: In last version of yuhua-chen/MCLog, use GCD and buffer_queue to wait the coming unfinished log content, so there is a risk: we operate the unprocessedOutputInfo in two threads.
In some situation, if we set value to unprocessedBuffer ( the code actually is " [unprocessedBuffer release]; unprocessedBuffer = newVal;" ), if method "outputForStandardOutput:"(thread 1),  after the call of "[unprocessedBuffer release];" thread 2(buffer_queue) go into MCOutputUnprocessedBuffer and get the value of  unprocessedBuffer, there would be EXC_BAD_ACCESS.
yuhua-chen added a commit that referenced this pull request Jan 26, 2016
Made some refactor, fix some bugs
@yuhua-chen yuhua-chen merged commit ffe03f6 into yuhua-chen:master Jan 26, 2016
@yuhua-chen
Copy link
Owner

thanks! 🍻

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