Browse Source

fix linter

Thibault bui Koechlin 5 years ago
parent
commit
557c5e6539
1 changed files with 4 additions and 2 deletions
  1. 4 2
      cmd/crowdsec/output.go

+ 4 - 2
cmd/crowdsec/output.go

@@ -24,8 +24,10 @@ LOOP:
 		case <-outputsTomb.Dying():
 			log.Infof("Flushing outputs")
 			output.FlushAll()
-			log.Infof("Shuting down output routines")
-			output.Shutdown()
+			log.Debugf("Shuting down output routines")
+			if err := output.Shutdown(); err != nil {
+				log.Errorf("error while in output shutdown: %s", err)
+			}
 			log.Infof("Done shutdown down output")
 			break LOOP
 		case event := <-overflow: