Commit 2b294bb3 authored by Ophélie Gagnard's avatar Ophélie Gagnard

src: Remove tag, timestamp, and surrounding [ ].

parent 66303c4e
......@@ -73,9 +73,7 @@ func FLBPluginFlushCtx(ctx, data unsafe.Pointer, length C.int, tag *C.char) int
}
// Print record keys and values
result = result + C.GoString(tag) + ":" +timestamp.String()
for _, v := range record {
result += "["
var output_string string = ""
for _, s := range v.([]uint8) {
output_string = output_string + string(s)
......@@ -83,7 +81,7 @@ func FLBPluginFlushCtx(ctx, data unsafe.Pointer, length C.int, tag *C.char) int
if strings.Contains(output_string, "fluentbit_end") {
is_end = true
}
result = result + output_string + "]"
result = result + output_string
}
result += "\n"
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment