From 2f134bce6e6701261ec786d529da0b22e9697647 Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Thu, 16 Feb 2023 11:39:03 +0100 Subject: [PATCH] world.mt logging --- context.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/context.go b/context.go index a11829f..f84a518 100644 --- a/context.go +++ b/context.go @@ -88,11 +88,15 @@ func connectAndMigrate(t types.DatabaseType, sqliteConn, psqlConn string, migFn // parses the "world.mt" file in the world-dir and creates a new context func New(world_dir string) (*Context, error) { - logrus.WithFields(logrus.Fields{"world_dir": world_dir}).Debug("Creating new DB context") wc, err := worldconfig.Parse(path.Join(world_dir, "world.mt")) if err != nil { return nil, err } + + logrus.WithFields(logrus.Fields{ + "world_dir": world_dir, + "world.mt": wc, + }).Debug("Creating new DB context") ctx := &Context{} // map