-
Notifications
You must be signed in to change notification settings - Fork 74
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
Suppress tailscaled logs after 200 lines #138
Suppress tailscaled logs after 200 lines #138
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tailscaled is quite chatty and emits a really large amount of log messages.
I'm missing: Why is that a concern?
Use the built-in `log_level` for tailscaled debug message handling
Tailscaled writes into the log something in nearly each second.
|
23b5e13
to
9fb47b1
Compare
I've spent a few hours googling, and found the same discussion in tailscaled-synology: tailscale/tailscale-synology#110 Solution: the logs suppressed after 200 lines, so the startup can be seen in details, but after a few minutes it will stop emitting noise. I had to modify it a bit due to busybox/sed limitations. UPDATE sample log, redacted the most of it:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @lmagyar 👍
../Frenck
Proposed Changes
Tailscaled is quite chatty and emits a really large amount of log messages.
This PR disables these messages after 200 lines, but makes it possible to re-enable the full logging for troubleshooting.
Based on the idea from tailscale/tailscale-synology#110
Related Issues
--