浏览代码

remove useless log, fix unit

Thibault bui Koechlin 5 年之前
父节点
当前提交
826fdeb2c2
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 1 1
      config/crowdsec.service
  2. 0 1
      pkg/leakybucket/bucket.go

+ 1 - 1
config/crowdsec.service

@@ -8,7 +8,7 @@ PIDFile=${PID}/crowdsec.pid
 #ExecStartPre=${BIN} -c ${CFG}/default.yaml -t
 #ExecStartPre=${BIN} -c ${CFG}/default.yaml -t
 ExecStart=${BIN} -c ${CFG}/default.yaml
 ExecStart=${BIN} -c ${CFG}/default.yaml
 ExecStartPost=/bin/sleep 0.1
 ExecStartPost=/bin/sleep 0.1
-ExecReload=/bin/kill -HUP \$MAINPID
+ExecReload=/bin/kill -HUP $MAINPID
 
 
 [Install]
 [Install]
 WantedBy=multi-user.target
 WantedBy=multi-user.target

+ 0 - 1
pkg/leakybucket/bucket.go

@@ -195,7 +195,6 @@ func LeakRoutine(l *Leaky) {
 	}
 	}
 
 
 	l.logger.Debugf("Leaky routine starting, lifetime : %s", l.Duration)
 	l.logger.Debugf("Leaky routine starting, lifetime : %s", l.Duration)
-	defer l.logger.Infof("Leaky routine exiting") //to remove
 	for {
 	for {
 		select {
 		select {
 		/*receiving an event*/
 		/*receiving an event*/