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

fsnotify events should logged as --verbose output #54

Closed
jimafisk opened this issue Aug 4, 2020 · 0 comments
Closed

fsnotify events should logged as --verbose output #54

jimafisk opened this issue Aug 4, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@jimafisk
Copy link
Member

jimafisk commented Aug 4, 2020

Currently when you add, edit/save, delete a file while running the webserver, it rebuilds the site and you see logging information about which fsnotify events were triggered:

File create detected: fsnotify.Event{Name:"content/events", Op:0x1}

File create detected: fsnotify.Event{Name:"layout/content/events.svelte", Op:0x1}

Or

File delete detected: fsnotify.Event{Name:"layout/content/4913", Op:0x4}

File rename detected: fsnotify.Event{Name:"layout/content/index.svelte", Op:0x8}

File create detected: fsnotify.Event{Name:"layout/content/index.svelte", Op:0x1}

File write detected: fsnotify.Event{Name:"layout/content/index.svelte", Op:0x2}

File delete detected: fsnotify.Event{Name:"layout/content/index.svelte~", Op:0x4}

We should use the build.Log utility to only show these messages if the --verbose flag is passed, e.g. plenti serve -v

@jimafisk jimafisk added the enhancement New feature or request label Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant