mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
fix(scheduled_tasks): recover correctly from string panics
This commit is contained in:
parent
8f9b6f1554
commit
96f1b4f082
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ func wrapRecover(todo func()) {
|
|||
|
||||
stack := strings.Split(string(debug.Stack()), "\n")
|
||||
stack = stack[7:]
|
||||
log.Println("error running tasks:", err.(error).Error())
|
||||
log.Printf("error running tasks: %v\n", err)
|
||||
fmt.Println(strings.Join(stack, "\n"))
|
||||
}
|
||||
}()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue