diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e8c7984c2ec266b437cf0a4ef0d61e0c4247ce2..abc307fe2cd2dd2f58a2764228c6cfeb6a217647 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 200f01b6765de5359cd1a6eef581975b3c32773e..f3c0e3e095fdd4e415bfb04e7820200cdfd4f41f 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)