1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2024-11-18 16:31:44 +02:00

fix spelling of "project" in airbrake config keys (#1291)

This commit is contained in:
Koen Punt 2024-06-12 17:14:16 +02:00 committed by GitHub
parent c01158977c
commit fed87524a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 10 deletions

View File

@ -184,9 +184,9 @@ var (
SentryEnvironment string
SentryRelease string
AirbrakeProjecID int
AirbrakeProjecKey string
AirbrakeEnv string
AirbrakeProjectID int
AirbrakeProjectKey string
AirbrakeEnv string
ReportDownloadingErrors bool
ReportIOErrors bool
@ -378,8 +378,8 @@ func Reset() {
SentryEnvironment = "production"
SentryRelease = fmt.Sprintf("imgproxy@%s", version.Version)
AirbrakeProjecID = 0
AirbrakeProjecKey = ""
AirbrakeProjectID = 0
AirbrakeProjectKey = ""
AirbrakeEnv = "production"
ReportDownloadingErrors = true
@ -611,8 +611,8 @@ func Configure() error {
configurators.String(&SentryDSN, "IMGPROXY_SENTRY_DSN")
configurators.String(&SentryEnvironment, "IMGPROXY_SENTRY_ENVIRONMENT")
configurators.String(&SentryRelease, "IMGPROXY_SENTRY_RELEASE")
configurators.Int(&AirbrakeProjecID, "IMGPROXY_AIRBRAKE_PROJECT_ID")
configurators.String(&AirbrakeProjecKey, "IMGPROXY_AIRBRAKE_PROJECT_KEY")
configurators.Int(&AirbrakeProjectID, "IMGPROXY_AIRBRAKE_PROJECT_ID")
configurators.String(&AirbrakeProjectKey, "IMGPROXY_AIRBRAKE_PROJECT_KEY")
configurators.String(&AirbrakeEnv, "IMGPROXY_AIRBRAKE_ENVIRONMENT")
configurators.Bool(&ReportDownloadingErrors, "IMGPROXY_REPORT_DOWNLOADING_ERRORS")
configurators.Bool(&ReportIOErrors, "IMGPROXY_REPORT_IO_ERRORS")

View File

@ -16,10 +16,10 @@ var (
)
func Init() {
if len(config.AirbrakeProjecKey) > 0 {
if len(config.AirbrakeProjectKey) > 0 {
notifier = gobrake.NewNotifierWithOptions(&gobrake.NotifierOptions{
ProjectId: int64(config.AirbrakeProjecID),
ProjectKey: config.AirbrakeProjecKey,
ProjectId: int64(config.AirbrakeProjectID),
ProjectKey: config.AirbrakeProjectKey,
Environment: config.AirbrakeEnv,
})
}