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

Remove timestamps and pid from logged lines. #271

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lkarsten
Copy link
Contributor

This is a patch for #268 .

It should perhaps not remove the time stamp and pid if the output is sent to a log file, but wasn't straight forward to get right. This solves my immediate issue.

@@ -113,6 +111,7 @@ VWLOG(int level, const char *fmt, va_list ap)
va_end(ap1);
return;
}

AZ(gettimeofday(&tv, NULL));
Copy link

Choose a reason for hiding this comment

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

I guess we can avoid calling gettimeofday(...) too.

@dmatetelki
Copy link
Contributor

@lkarsten : Don't you want to keep time&pid when logging to stdout/stderr?

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