Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fluentbit-plugin-wendelin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
fluentbit-plugin-wendelin
Commits
2b294bb3
Commit
2b294bb3
authored
Nov 09, 2022
by
Ophélie Gagnard
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: Remove tag, timestamp, and surrounding [ ].
parent
66303c4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
src/fluentbit_wendelin.go
src/fluentbit_wendelin.go
+1
-3
No files found.
src/fluentbit_wendelin.go
View file @
2b294bb3
...
...
@@ -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
"
}
...
...
Ophélie Gagnard
@Ophelie
mentioned in commit
d2e21ad4
·
Nov 10, 2022
mentioned in commit
d2e21ad4
mentioned in commit d2e21ad4b6536c4ec7fcb7d63873836cb1041b73
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment