go-spacemesh icon indicating copy to clipboard operation
go-spacemesh copied to clipboard

Collect local logs and zip when node crashes

Open antonlerner opened this issue 3 years ago • 5 comments

When a Node crashes for a user we should pack the relevant logs to make sure they are not re written, this will also make reporting issues a lot easier for us

when a node panics or exits abruptly we should have a method that packs the logs to a known location

antonlerner avatar Feb 01 '21 11:02 antonlerner

I think that @lrettig opened an issue recently regarding log rotation. q: why should the logs be re-written? They are always appended and always in one place? I don't think we even had a user that didn't find his logs when we asked him for it. There's a button in smapp settings top open the logs folder as well. Also - don't we want the telemetry feature that @sudachen has been working on to at least report panics with some logs back to the mothership if user's telemetry is opted-in?

avive avatar Feb 01 '21 12:02 avive

The common solution for getting users logs in case of a crash this is to ask the user to submit a crash report back to the telemetry server and include his logs in the report + the panic but the logs are currently too big after short time to be uploaded.

avive avatar Feb 01 '21 12:02 avive

It's here: https://github.com/spacemeshos/smapp/issues/680

Seems to me most of this log management stuff belongs in smapp, not go-spacemesh.

lrettig avatar Feb 07 '21 00:02 lrettig

@lrettig still relevant?

moshababo avatar Jun 26 '22 13:06 moshababo

Yes, there was a discussion about this in slack recently: https://spacemesh.slack.com/archives/C89QJJY3G/p1656319462621179

lrettig avatar Jun 27 '22 21:06 lrettig