Skip to content

Commit

Permalink
Merge pull request #1408 from smartcontractkit/bugfix/disable_migrati…
Browse files Browse the repository at this point in the history
…on_logging

Ensure logging is toggled after migrations
  • Loading branch information
j16r authored Jun 27, 2019
2 parents 64fd3ef + b876794 commit 1e68c54
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,11 @@ func initializeORM(config Config) (*orm.ORM, error) {
if err != nil {
return nil, err
}
if err = migrations.Migrate(orm.DB); err != nil {
return nil, err
}
orm.SetLogging(config.LogSQLStatements())
return orm, migrations.Migrate(orm.DB)
return orm, nil
}

// RunRequest is the type that the RunChannel uses to package all the necessary
Expand Down

0 comments on commit 1e68c54

Please sign in to comment.