[MM-42703] - Add configuration setting to disable Inactive Server email notification (#19831)
* [MM-42703] - Add configuration setting to disable Inactive Server email notification * remove log * add config to telemetry * fix lint
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0efb7bf07d
Коммит
82c8bd33ed
@@ -17,6 +17,11 @@ import (
|
||||
const serverInactivityHours = 100
|
||||
|
||||
func (s *Server) doInactivityCheck() {
|
||||
if !*s.Config().EmailSettings.EnableInactivityEmail {
|
||||
mlog.Info("No activity check because EnableInactivityEmail is false")
|
||||
return
|
||||
}
|
||||
|
||||
if !s.Config().FeatureFlags.EnableInactivityCheckJob {
|
||||
mlog.Info("No activity check because EnableInactivityCheckJob feature flag is disabled")
|
||||
return
|
||||
|
||||
Ссылка в новой задаче
Block a user