Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-pubsub
Commits
438dd9e2
Commit
438dd9e2
authored
May 05, 2020
by
vyzo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
downgrade tracer Error logs to Warn
parent
ce9a0b7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
tracer.go
tracer.go
+6
-6
No files found.
tracer.go
View file @
438dd9e2
...
...
@@ -113,7 +113,7 @@ func (t *JSONTracer) doWrite() {
for
i
,
evt
:=
range
buf
{
err
:=
enc
.
Encode
(
evt
)
if
err
!=
nil
{
log
.
Error
f
(
"error writing event trace: %s"
,
err
.
Error
())
log
.
Warn
f
(
"error writing event trace: %s"
,
err
.
Error
())
}
buf
[
i
]
=
nil
}
...
...
@@ -165,7 +165,7 @@ func (t *PBTracer) doWrite() {
for
i
,
evt
:=
range
buf
{
err
:=
w
.
WriteMsg
(
evt
)
if
err
!=
nil
{
log
.
Error
f
(
"error writing event trace: %s"
,
err
.
Error
())
log
.
Warn
f
(
"error writing event trace: %s"
,
err
.
Error
())
}
buf
[
i
]
=
nil
}
...
...
@@ -202,7 +202,7 @@ func (t *RemoteTracer) doWrite() {
s
,
err
:=
t
.
openStream
()
if
err
!=
nil
{
log
.
Error
f
(
"error opening remote tracer stream: %s"
,
err
.
Error
())
log
.
Warn
f
(
"error opening remote tracer stream: %s"
,
err
.
Error
())
return
}
...
...
@@ -237,13 +237,13 @@ func (t *RemoteTracer) doWrite() {
err
=
w
.
WriteMsg
(
&
batch
)
if
err
!=
nil
{
log
.
Error
f
(
"error writing trace event batch: %s"
,
err
)
log
.
Warn
f
(
"error writing trace event batch: %s"
,
err
)
goto
end
}
err
=
gzipW
.
Flush
()
if
err
!=
nil
{
log
.
Error
f
(
"error flushin gzip stream: %s"
,
err
)
log
.
Warn
f
(
"error flushin gzip stream: %s"
,
err
)
goto
end
}
...
...
@@ -267,7 +267,7 @@ func (t *RemoteTracer) doWrite() {
s
.
Reset
()
s
,
err
=
t
.
openStream
()
if
err
!=
nil
{
log
.
Error
f
(
"error opening remote tracer stream: %s"
,
err
.
Error
())
log
.
Warn
f
(
"error opening remote tracer stream: %s"
,
err
.
Error
())
return
}
...
...
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