Commit cac84a99 authored by Andrei Mihu's avatar Andrei Mihu
Browse files

Go runtime logger now identifies the file/line in the runtime as the caller rather than the logger.

parent 5980b7a7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -7,6 +7,9 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr
### Added
- Added Nakama API to get users by facebook ID.

### Changed
- Go runtime logger now identifies the file/line in the runtime as the caller rather than the logger.

### Fixed
- Fix an issue that prevented the JavaScript runtime hooks to be invoked correctly.
- Fix the delete button not working in the console leaderboard listing.
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ type RuntimeGoLogger struct {
func NewRuntimeGoLogger(logger *zap.Logger) nkruntime.Logger {
	return &RuntimeGoLogger{
		fields: make(map[string]interface{}),
		logger: logger.With(zap.String("runtime", "go")),
		logger: logger.WithOptions(zap.AddCallerSkip(1)).With(zap.String("runtime", "go")),
	}
}