Skip to content
Snippets Groups Projects
Commit 68e4d651 authored by ale's avatar ale
Browse files

Do not buffer the output

parent 755c43f4
No related branches found
No related tags found
1 merge request!181Rewrite mod_security output to structured logging
Pipeline #38477 passed
......@@ -53,8 +53,7 @@ func parseModSec(w io.Writer, line []byte) bool {
}
func main() {
outw := bufio.NewWriter(os.Stdout)
defer outw.Flush()
outw := os.Stdout
scanner := bufio.NewScanner(os.Stdin)
for scanner.Scan() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment