Example #1
0
// DumpStack dump stack trace
func DumpStack(e interface{}, stack []byte) {

	if err := slack.Send(e, string(stack)); err != nil {
		fmt.Printf("cant send to slack %v\n", err)
	}
	fmt.Printf("[%v] crashing...\n", PrettyPrintTime(time.Now()))
}
Example #2
0
// Fatal fatal print to stdout
func Fatal(msg string) {
	str := errMsgFmt("f", msg)

	go slack.Send("", str)
	fmt.Println(str)
}