Files
nginx-proxy-manager/backend/internal/entity/setting/apply.go
2021-06-14 19:45:28 +10:00

16 lines
320 B
Go

package setting
import (
"npm/internal/config"
"npm/internal/logger"
)
// ApplySettings will load settings from the DB and apply them where required
func ApplySettings() {
logger.Debug("Applying Settings")
// Error-reporting
m, _ := GetByName("error-reporting")
config.ErrorReporting = m.Value.Decoded.(bool)
}