Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Task panic recovery doesn't log the cause of the panic #13095

Closed
zeripath opened this issue Oct 11, 2020 · 0 comments · Fixed by #13096
Closed

Migrate Task panic recovery doesn't log the cause of the panic #13095

zeripath opened this issue Oct 11, 2020 · 0 comments · Fixed by #13096
Labels

Comments

@zeripath
Copy link
Contributor

fmt.Fprintf(&buf, "Handler crashed with error: %v", log.Stack(2))

Needs to log the e from the recover() as a %v just before the %v of the log.Stack

There are potentially other places where this error might have sneaked through.

References #13085

zeripath added a commit to zeripath/gitea that referenced this issue Oct 11, 2020
If there is a panic during runMigrateTask we should capture and log the underlying
panic error.

This PR ensures that the panic is logged and captured as part of the task message.

Fix go-gitea#13095

Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath added a commit to zeripath/gitea that referenced this issue Oct 11, 2020
Backport go-gitea#13096

If there is a panic during runMigrateTask we should capture and log the underlying
panic error.

This PR ensures that the panic is logged and captured as part of the task message.

Fix go-gitea#13095

Signed-off-by: Andrew Thornton <art27@cantab.net>
techknowlogick pushed a commit that referenced this issue Oct 11, 2020
If there is a panic during runMigrateTask we should capture and log the underlying
panic error.

This PR ensures that the panic is logged and captured as part of the task message.

Fix #13095

Signed-off-by: Andrew Thornton <art27@cantab.net>
techknowlogick pushed a commit that referenced this issue Oct 11, 2020
Backport #13096

If there is a panic during runMigrateTask we should capture and log the underlying
panic error.

This PR ensures that the panic is logged and captured as part of the task message.

Fix #13095

Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath added a commit to zeripath/gitea that referenced this issue Oct 11, 2020
If there is a panic during runMigrateTask we should capture and log the underlying
panic error.

This PR ensures that the panic is logged and captured as part of the task message.

Fix go-gitea#13095

Signed-off-by: Andrew Thornton <art27@cantab.net>
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant