pubky/mainline

errors need to be logged.

Closed this issue · 2 comments

currently a coworker of mine is experiencing trouble with the dht. it works fine on my machine but not on his. without any logs, it's hard to tell what might be the cause. looks like the socket for example just swallows any errors.

Nuhvi commented

Ok, I was hesitant to add any tracing because it is not without cost. But now I have a real-world request.

Do you have a preferred way to do it? tracing? or simply eprintln!()?

tracing or log work. I don't think logging using eprintln is very common. And filtering logs by crate and level is really useful when you have a large rust project.