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

How to silence journalctl entries #1967

Closed
shervinsahba opened this issue Aug 4, 2020 · 1 comment
Closed

How to silence journalctl entries #1967

shervinsahba opened this issue Aug 4, 2020 · 1 comment

Comments

@shervinsahba
Copy link

Issue report

OS: 5.4.52-1-MANJARO

App version: mullvad 2020.5

Issue description

Is it possible to silence journaling when get_state is called by mullvad-daemon? I have a script that reports the VPN status intermittently, and as a result journalctl is filled with entries of [mullvad_daemon::management_interface][DEBUG] get_state. Ideally, I'd like to silence the get_state call only. Or are these printouts all a result of debug mode? In any case, I'm unsure of how to silence either, though I tried removing the -v in the files below. Thank you!

File /opt/Mullvad\ VPN/resources/mullvad-daemon.service:

# Systemd service unit file for the Mullvad VPN daemon

[Unit]
Description=Mullvad VPN daemon
Wants=network.target
After=network-online.target
After=NetworkManager.service
After=systemd-resolved.service
StartLimitBurst=5
StartLimitIntervalSec=20

[Service]
Restart=always
RestartSec=1
ExecStart=/opt/Mullvad\x20VPN/resources/mullvad-daemon -v --disable-stdout-timestamps

[Install]
WantedBy=multi-user.targe

File /opt/Mullvad\ VPN/resources/mullvad-daemon.conf:

# Upstart job configuration file for the Mullvad VPN daemon

start on local-filesystems and net-device-up IFACE!=lo
respawn
chdir /opt/Mullvad\ VPN/resources
exec /opt/Mullvad\ VPN/resources/mullvad-daemon -v
@shervinsahba
Copy link
Author

shervinsahba commented Aug 6, 2020

Resolved here. Removing the debug flag -v from mullvad-daemon.service works. I probably needed to reload the daemon. There's also a --disable-log-to-file flag for further silencing.

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

No branches or pull requests

1 participant