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

Improve connection logging at boot time #110

Open
wants to merge 1 commit into
base: sensor-base-0.7.0
Choose a base branch
from

Conversation

djoreilly
Copy link

End users need to know if the client service is working or not, and they do so by running systemctl status velociraptor-client. At boot time the client starts before the network and there is a "network is unreachable" message. We were logging this at ERROR level because INFO level messages won't show without --verbose, and that level is too verbose and spams the journal, see #65 . But end users only see error messages without any positive messages to say a connection was made, and they assume there is a problem. Fix this by writing failure/waiting/connected messages to stderr.

End users need to know if the client service is working or not,
and they do so by running `systemctl status velociraptor-client`.
At boot time the client starts before the network and there is a
"network is unreachable" message. We were logging this at ERROR
level because INFO level messages won't show without --verbose,
and that level is too verbose and spams the journal, see
SUSE#65 .
But end users only see error messages without any positive
messages to say a connection was made, and they assume there
is a problem. Fix this by writing failure/waiting/connected
messages to stderr.
@djoreilly djoreilly requested review from xTeixeira and jeffmahoney May 8, 2024 11:44
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.

1 participant