Skip to content

WIP ENT-3756: try to flush each line of logging while in debug level#3112

Closed
craigcomstock wants to merge 1 commit into
cfengine:3.7.xfrom
craigcomstock:line-flush-on-debug
Closed

WIP ENT-3756: try to flush each line of logging while in debug level#3112
craigcomstock wants to merge 1 commit into
cfengine:3.7.xfrom
craigcomstock:line-flush-on-debug

Conversation

@craigcomstock

Copy link
Copy Markdown
Contributor

No description provided.

@craigcomstock craigcomstock changed the title ENT-3756: try to flush each line of logging while in debug level WIP ENT-3756: try to flush each line of logging while in debug level May 9, 2018
@olehermanse olehermanse added the WIP Work in Progress label May 11, 2018
Comment thread libutils/logging.c
if (level == LOG_LEVEL_DEBUG)
{
fflush(stdout);
// TODO also possibly call sync()? Not sure if that's too "expensive" or not.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think fsync() should be no problem, it's a debug mode after all.

@craigcomstock

Copy link
Copy Markdown
Contributor Author

I included just the fflush(stdout) in #3180 so this smaller one can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WIP Work in Progress

Development

Successfully merging this pull request may close these issues.

3 participants