Skip to content

Commit

Permalink
world.mt logging
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Feb 16, 2023
1 parent 7d83bde commit 2f134bc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f134bc

Please sign in to comment.