Пример #1
0
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)
}