示例#1
0
文件: builds.go 项目: csquared/kernel
func logEvent(log *logger.Logger, build models.Build, step string, err error) {
	if err != nil {
		log.Log("state=error step=build.%s app=%q build=%q error=%q", step, build.App, build.Id, err)
	} else {
		log.Success("step=build.%s app=%q build=%q", step, build.App, build.Id)
	}
}
示例#2
0
func Error(log *logger.Logger, err error) {
	if log == nil {
		log.Error(err)
	}
	rollbar.Error(rollbar.ERR, err)
}