StatusStore migration (#14978)
* Finished! * Typos * Fix error * Fix layers * Lint: remove unnecessary use of sprint * Fix shadowing err
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
909cda6d49
Коммит
32b7d2b5f1
@@ -467,7 +467,7 @@ func NewServer(options ...Option) (*Server, error) {
|
||||
if s.Audit == nil {
|
||||
s.Audit = &audit.Audit{}
|
||||
s.Audit.Init(audit.DefMaxQueueSize)
|
||||
if err := s.configureAudit(s.Audit, allowAdvancedLogging); err != nil {
|
||||
if err = s.configureAudit(s.Audit, allowAdvancedLogging); err != nil {
|
||||
mlog.Error("Error configuring audit", mlog.Err(err))
|
||||
}
|
||||
}
|
||||
@@ -488,8 +488,8 @@ func NewServer(options ...Option) (*Server, error) {
|
||||
s.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableDeveloper = true })
|
||||
}
|
||||
|
||||
if appErr = s.Store.Status().ResetAll(); appErr != nil {
|
||||
mlog.Error("Error to reset the server status.", mlog.Err(appErr))
|
||||
if err = s.Store.Status().ResetAll(); err != nil {
|
||||
mlog.Error("Error to reset the server status.", mlog.Err(err))
|
||||
}
|
||||
|
||||
if s.startMetrics && s.Metrics != nil {
|
||||
|
||||
Ссылка в новой задаче
Block a user