mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
add LogLevel/WithLogLevel in Configuration and run Configurators before Build state
Former-commit-id: d38f1fdae98d650692775f4cee06bd017aba959f
This commit is contained in:
@@ -89,7 +89,7 @@ func New(t *testing.T, app *iris.Application, setters ...OptionSetter) *httpexpe
|
||||
app.Logger().SetLevel(conf.LogLevel)
|
||||
|
||||
if err := app.Build(); err != nil {
|
||||
if conf.LogLevel != "disable" && conf.LogLevel != "disabled" {
|
||||
if conf.LogLevel != "disable" {
|
||||
app.Logger().Println(err.Error())
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user