mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 18:16:26 +00:00
Remove sentry and error reporting
This commit is contained in:
@ -1,9 +1,7 @@
|
||||
package setting
|
||||
|
||||
import (
|
||||
"npm/internal/config"
|
||||
"npm/internal/entity"
|
||||
"npm/internal/logger"
|
||||
"npm/internal/model"
|
||||
)
|
||||
|
||||
@ -55,16 +53,3 @@ func List(pageInfo model.PageInfo, filters []model.Filter) (entity.ListResponse,
|
||||
|
||||
return result, nil
|
||||
}
|
||||
|
||||
// ApplySettings will load settings from the DB and apply them where required
|
||||
func ApplySettings() {
|
||||
logger.Debug("Applying Settings")
|
||||
|
||||
// Error-reporting
|
||||
m, err := GetByName("error-reporting")
|
||||
if err != nil {
|
||||
logger.Error("ApplySettingsError", err)
|
||||
} else {
|
||||
config.ErrorReporting = m.Value.String() == "true"
|
||||
}
|
||||
}
|
||||
|
@ -45,6 +45,6 @@ func (m *Model) Save() error {
|
||||
if result := db.Save(m); result.Error != nil {
|
||||
return result.Error
|
||||
}
|
||||
ApplySettings()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user