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