Skip to content

Remove timestamps and pid from logged lines.#271

Open
lkarsten wants to merge 1 commit into
varnish:masterfrom
lkarsten:timeless_logging
Open

Remove timestamps and pid from logged lines.#271
lkarsten wants to merge 1 commit into
varnish:masterfrom
lkarsten:timeless_logging

Conversation

@lkarsten
Copy link
Copy Markdown
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.

Comment thread src/logging.c
return;
}

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

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
Copy Markdown
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