Skip to content

Commit

Permalink
adjust max text length of frontmost application logs
Browse files Browse the repository at this point in the history
  • Loading branch information
tekezo committed Apr 23, 2019
1 parent 50dd716 commit 11a1e04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/EventViewer/src/FrontmostApplicationController.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ - (void)callback:(NSString*)bundleIdentifier filePath:(NSString*)filePath {
if (![@"org.pqrs.Karabiner.EventViewer" isEqualToString:bundleIdentifier] &&
![@"org.pqrs.Karabiner-EventViewer" isEqualToString:bundleIdentifier]) {
// Clear if text is huge.
if (self.text.length > 1024 * 1024) {
if (self.text.length > 4 * 1024) {
[self.text setAttributedString:[[NSAttributedString alloc] initWithString:@""]];
}

Expand Down

0 comments on commit 11a1e04

Please sign in to comment.