From 6813b577475494ff4bd1985f64281df151b9ea11 Mon Sep 17 00:00:00 2001 From: Andrei Mihu Date: Tue, 23 Oct 2018 00:05:13 +0100 Subject: [PATCH] Log more error information on Go runtime plugin init errors. --- CHANGELOG.md | 5 +++++ server/runtime_go.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e8c7984c..abc307fe2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project are documented below. The format is based on [keep a changelog](http://keepachangelog.com) and this project uses [semantic versioning](http://semver.org). ## [Unreleased] +### Changed +- Log more error information when InitModule hooks from Go runtime plugins return errors. + +### Fixed +- Improve leaderboard rank re-calculation when removing a leaderboard record. ## [2.1.1] - 2018-10-21 ### Added diff --git a/server/runtime_go.go b/server/runtime_go.go index 200f01b67..f3c0e3e09 100644 --- a/server/runtime_go.go +++ b/server/runtime_go.go @@ -1822,7 +1822,7 @@ func NewRuntimeProviderGo(logger, startupLogger *zap.Logger, db *sql.DB, config // Run the initialisation. if err = fn(context.Background(), stdLogger, db, nk, initializer); err != nil { - startupLogger.Fatal("Error returned by InitModule function in Go module", zap.String("name", name)) + startupLogger.Fatal("Error returned by InitModule function in Go module", zap.String("name", name), zap.Error(err)) return nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, errors.New("error returned by InitModule function in Go module") } modulePaths = append(modulePaths, relPath) -- GitLab