diff --git a/CHANGELOG.md b/CHANGELOG.md index f25b5da97b..e4e85a5ef8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,7 +37,9 @@ Ref: https://keepachangelog.com/en/1.0.0/ ## Unreleased -* nothing +### Bug Fixes + +* Correctly log streaming plugin loading errors [PR 1356](https://github.com/provenance-io/provenance/pull/1356). --- diff --git a/app/app.go b/app/app.go index 4305850849..f86fdc6291 100644 --- a/app/app.go +++ b/app/app.go @@ -1045,11 +1045,11 @@ func (app *App) RegisterStreamingServices(appOpts servertypes.AppOptions) { logLevel := cast.ToString(appOpts.Get(flags.FlagLogLevel)) plugin, err := streaming.NewStreamingPlugin(pluginName, logLevel) if err != nil { - app.Logger().Error("failed to load streaming plugin: %s", err) + app.Logger().Error("failed to load streaming plugin", "error", err) os.Exit(1) } if err := baseapp.RegisterStreamingPlugin(app.BaseApp, appOpts, app.keys, plugin); err != nil { - app.Logger().Error("failed to register streaming plugin: %s", err) + app.Logger().Error("failed to register streaming plugin", "error", err) os.Exit(1) } app.Logger().Info("streaming service registered", "service", service, "plugin", pluginName)