Send error logs asynchronously

This commit is contained in:
Howl 2016-05-28 20:28:13 +02:00
parent 6a374a4f9d
commit 571325e98f

View File

@ -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 + "```")
}
}
}