Send error logs asynchronously
This commit is contained in:
1 parent
6a374a4f9d
commit
571325e98f
1 file changed
+1
-1
@@ -21,7 +21,7 @@ func ErrorHandler() gin.HandlerFunc {
|
||||
out += fmt.Sprintf("===> %s\n", err)
|
||||
}
|
||||
color.Red(out)
|
||||
schiavo.Bunker.Send("Errors occurred:\n```\n" + out + "```")
|
||||
go schiavo.Bunker.Send("Errors occurred:\n```\n" + out + "```")
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user