Currently, the minimum log level for EF to use is hardcoded to Warning by Refresh, so only warnings and above will be printed. The minimum log level should be configurable via our db.json config file instead. This should be simple, because this config is already used for other things in GameDatabaseContext.OnConfiguring(), which is also the method that sets the log level.
Changing the minimum log level could be useful for development, because EF usually logs its generated SQL queries at the Information log level, but Refresh currently doesn't have any way to print these since Information is below Warning.
The config option should default to Warning though, since this increased logging should be optional, and there usually is no reason to log the generated SQL in production.
Currently, the minimum log level for EF to use is hardcoded to
Warningby Refresh, so only warnings and above will be printed. The minimum log level should be configurable via ourdb.jsonconfig file instead. This should be simple, because this config is already used for other things inGameDatabaseContext.OnConfiguring(), which is also the method that sets the log level.Changing the minimum log level could be useful for development, because EF usually logs its generated SQL queries at the
Informationlog level, but Refresh currently doesn't have any way to print these sinceInformationis belowWarning.The config option should default to
Warningthough, since this increased logging should be optional, and there usually is no reason to log the generated SQL in production.