mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-10 20:05:55 +02:00
Reduce log verbosity at startup (#2363)
A configuration syntax test is performed every time the service is started from systemd. The resulting error, if any, is shown on journalctl logs. This PR removes the unnecessary output in crowdsec.log generated by the configuration test.
This commit is contained in:
parent
bb16552aca
commit
3c16139c44
2 changed files with 2 additions and 2 deletions
|
@ -344,7 +344,7 @@ func Serve(cConfig *csconfig.Config, apiReady chan bool, agentReady chan bool) e
|
|||
}
|
||||
|
||||
if flags.TestMode {
|
||||
log.Infof("test done")
|
||||
log.Infof("Configuration test done")
|
||||
pluginBroker.Kill()
|
||||
os.Exit(0)
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ After=syslog.target network.target remote-fs.target nss-lookup.target
|
|||
[Service]
|
||||
Type=notify
|
||||
Environment=LC_ALL=C LANG=C
|
||||
ExecStartPre=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -t
|
||||
ExecStartPre=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
|
||||
ExecStart=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml
|
||||
#ExecStartPost=/bin/sleep 0.1
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue