Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

swarm/network: remove spammy log line #1011

Closed
wants to merge 1 commit into from
Closed

swarm/network: remove spammy log line #1011

wants to merge 1 commit into from

Conversation

nonsense
Copy link
Contributor

No description provided.

@@ -255,7 +255,7 @@ func (d *Delivery) RequestFromPeers(ctx context.Context, req *network.Request) (
}
sp = d.getPeer(id)
if sp == nil {
log.Warn("Delivery.RequestFromPeers: peer not found", "id", id)
//log.Warn("Delivery.RequestFromPeers: peer not found", "id", id)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets leave this. this warning occurring too many times is indicating a bug.

Copy link
Contributor Author

@nonsense nonsense Nov 21, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand that this is a bug, but this is a very spammy log line, and it is not helpful.

screen shot 2018-11-21 at 12 48 53

400k times for a single peer. Users are complaining that this is filling their disks with logs, and rightly so.


I am currently looking into it, but we should not have another release with this spammy log.

The peer in question in the logs is actually present in the peer list, so I am not sure why d.getPeer(id) is returning nil.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's a bug and we just silently "ignore" it, then we should open an issue to investigate it and find a solution.

Copy link
Member

@acud acud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm with leaving the commented line in, let's follow up on this in a separate issue

@@ -255,7 +255,7 @@ func (d *Delivery) RequestFromPeers(ctx context.Context, req *network.Request) (
}
sp = d.getPeer(id)
if sp == nil {
log.Warn("Delivery.RequestFromPeers: peer not found", "id", id)
//log.Warn("Delivery.RequestFromPeers: peer not found", "id", id)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's a bug and we just silently "ignore" it, then we should open an issue to investigate it and find a solution.

@nonsense
Copy link
Contributor Author

@holisticode here is the issue. #999

@nonsense nonsense changed the title swarm/network: fix logs swarm/network: remove spammy log line Nov 22, 2018
@zelig
Copy link
Member

zelig commented Nov 23, 2018

@nonsense please use status labels

@nonsense
Copy link
Contributor Author

nonsense commented Nov 23, 2018

I am not sure what status label you are talking about? This PR has been open for days with responses to your comments, and because of this there was no action on it. Also you had Changes requested status on it, so I am not sure what I was supposed to do it that case.

@nonsense
Copy link
Contributor Author

Closing this as we are piggy-backing it to another PR.

@nonsense nonsense closed this Nov 23, 2018
@nonsense nonsense deleted the fix-logs branch December 11, 2018 08:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants