From fed87524a02d042247c68986de8f1ca3f028aeff Mon Sep 17 00:00:00 2001 From: Koen Punt Date: Wed, 12 Jun 2024 17:14:16 +0200 Subject: [PATCH] fix spelling of "project" in airbrake config keys (#1291) --- config/config.go | 14 +++++++------- errorreport/airbrake/airbrake.go | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/config/config.go b/config/config.go index 4d314cd9..cedc343b 100644 --- a/config/config.go +++ b/config/config.go @@ -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") diff --git a/errorreport/airbrake/airbrake.go b/errorreport/airbrake/airbrake.go index c13478b5..fa7001dc 100644 --- a/errorreport/airbrake/airbrake.go +++ b/errorreport/airbrake/airbrake.go @@ -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, }) }