feat(discord): added in a way to get panic messages that would crash the server only or fatal

This commit is contained in:
2025-08-04 21:23:06 -05:00
parent 3cec883356
commit 89ef04cc6f
4 changed files with 81 additions and 2 deletions

View File

@@ -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
})