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

Logs all concatenated #2

Open
freynolds opened this issue Aug 30, 2017 · 0 comments
Open

Logs all concatenated #2

freynolds opened this issue Aug 30, 2017 · 0 comments

Comments

@freynolds
Copy link

freynolds commented Aug 30, 2017

Hi @fnazarios, first, let me thank you for this awesome pod!
I'm experience that multiple logs are sticking together, and they are beeing sent as one only log.
Do you have any idea of the cause of this?

I'm seeing that the messages containing \n are sticking together. No clue if this is a system thing or something wrong in my setup?

I did a simple change to the code in the pod. I'm a Swift guy, so I'm horrible at obj-c.

- (void)notificationReceived:(NSNotification *)notification {
    [stderrReadFileHandle readInBackgroundAndNotify];
    NSString *logString = [self getLogMessage:notification];
    NSArray *logs = [logString componentsSeparatedByString:@"\n"];
    for (int i=0; i < [logs count]; i++) {
        [self sendLog:logs[i]];
    }
}

Now it makes a ton of logs, which its better at the eye, but don't know if its ideal.
What do you think?

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

No branches or pull requests

1 participant