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

Make the 'Syncing changes' messages all vlog #373

Closed
wants to merge 1 commit into from

Conversation

sweharris
Copy link

The Syncing changes messages appear in the log very frequently (e.g. every 49 seconds) even if there is nothing to do, which will cause large log files over time. This change makes this message only appear in verbose mode.

@abraunegg
Copy link
Owner

@sweharris

The Syncing changes messages appear in the log very frequently (e.g. every 49 seconds) even if there is nothing to do, which will cause large log files over time. This change makes this message only appear in verbose mode.

Understand the driver behind this, however the intent here was that these messages always presented a message when doing a sync, even when not using --verbose so you had an idea of what it was doing.

I totally understand however, that in a non-verbose mode & utilising monitor, then the frequency of the message if "nothing" is going on is needless.

Perhaps, a better mechanism here is:

  • If not in monitor mode, write out the log line as per normal
  • In in monitor mode & verbose mode, write out the log line as per normal else skip

Thoughts?

@sweharris
Copy link
Author

sweharris commented Feb 8, 2019

Ah, I had noted there was already a

log.vlog("Syncing changes from this selected path: ", singleDirectory);

line (line 617), so followed that. Maybe that's an existing bug :-)

I think your idea is probably more complete! The logical may be simplified to "if (not monitor) or verbose then write line"

abraunegg added a commit that referenced this pull request Feb 11, 2019
* Rework of @sweharris proposed PR to reduce needless logging in monitor mode
@abraunegg
Copy link
Owner

@sweharris
Closing this PR in favour of #376

Please can you review #376 & comment

@abraunegg abraunegg closed this Feb 11, 2019
abraunegg added a commit that referenced this pull request Feb 14, 2019
* Rework PR #373 to reduce needless logging in monitor mode
@lock
Copy link

lock bot commented Mar 13, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants