Typo
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
Berengar W. Lehr 2023-09-26 14:56:35 +02:00
parent 5560fc7f98
commit ba79afe29c
1 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ func NewEcho() *echo.Echo {
e.HideBanner = true
if l, ok := e.Logger.(*elog.Logger); ok {
if !configLogEnabled || config.LogEcho.GetString() == "off" {
if !config.LogEnabled.GetBool() || config.LogEcho.GetString() == "off" {
l.SetLevel(elog.OFF)
}
l.EnableColor()
@ -104,7 +104,7 @@ func NewEcho() *echo.Echo {
}
// Logger
if !configLogEnabled || config.LogHTTP.GetString() != "off" {
if !config.LogEnabled.GetBool() || config.LogHTTP.GetString() != "off" {
e.Use(middleware.LoggerWithConfig(middleware.LoggerConfig{
Format: log.WebFmt + "\n",
Output: log.GetLogWriter(config.LogHTTP.GetString(), "http"),