feat(discord): added in a way to get panic messages that would crash the server only or fatal
This commit is contained in:
@@ -25,9 +25,9 @@ func main() {
|
||||
// Initialize DB
|
||||
if _, err := db.InitDB(); err != nil {
|
||||
|
||||
log.Panic("Database intialize failed", "db", map[string]interface{}{
|
||||
log.Panic("Database intialize failed, please check the server asap.", "db", map[string]interface{}{
|
||||
"error": err.Error(),
|
||||
"casue": errors.Unwrap(err),
|
||||
"cause": errors.Unwrap(err),
|
||||
"timeout": "30s",
|
||||
"details": fmt.Sprintf("%+v", err), // Full stack trace if available
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user