diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ac2daa0..8c54813e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [v1.8.1] +- change webhooks package to not use `logging` functions [#469](https://github.com/xmidt-org/webpa-common/pull/469) + ## [v1.8.0] - upgrade wrp-go version to v3.0.1 for subpackages convey and device [#460](https://github.com/xmidt-org/webpa-common/pull/460) - Increase reliability of travis unit tests by refactoring racy testLogger [#462](https://github.com/xmidt-org/webpa-common/pull/462) diff --git a/webhook/aws/sns.go b/webhook/aws/sns.go index bf84eee9..557b5dfa 100644 --- a/webhook/aws/sns.go +++ b/webhook/aws/sns.go @@ -12,6 +12,7 @@ import ( "time" "github.com/go-kit/kit/log" + "github.com/go-kit/kit/log/level" "github.com/gorilla/mux" "github.com/miekg/dns" "github.com/spf13/viper" @@ -168,8 +169,8 @@ func (ss *SNSServer) Initialize(rtr *mux.Router, selfUrl *url.URL, soaProvider s logger = logging.DefaultLogger() } - ss.errorLog = logging.Error(logger) - ss.debugLog = logging.Debug(logger) + ss.errorLog = log.WithPrefix(logger, level.Key(), level.ErrorValue()) + ss.debugLog = log.WithPrefix(logger, level.Key(), level.DebugValue()) ss.metrics = ApplyMetricsData(registry) ss.snsNotificationReceivedChan = ss.SNSNotificationReceivedInit()