Fix crash detection defaults
This commit is contained in:
parent
dd4a920d62
commit
3fd5b1e92b
|
@ -210,7 +210,12 @@ func (s *Server) Init() {
|
||||||
// for a server.
|
// for a server.
|
||||||
func FromConfiguration(data []byte, cfg *config.SystemConfiguration) (*Server, error) {
|
func FromConfiguration(data []byte, cfg *config.SystemConfiguration) (*Server, error) {
|
||||||
s := new(Server)
|
s := new(Server)
|
||||||
|
|
||||||
defaults.SetDefaults(s)
|
defaults.SetDefaults(s)
|
||||||
|
s.CrashDetection = CrashDetection{
|
||||||
|
Enabled: true,
|
||||||
|
}
|
||||||
|
|
||||||
s.Init()
|
s.Init()
|
||||||
|
|
||||||
if err := yaml.Unmarshal(data, s); err != nil {
|
if err := yaml.Unmarshal(data, s); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user