Esempio n. 1
0
func setupRunConfigDefaults(c *RunConfig) {
	if c.GracefulShutdownTimeoutSecs == 0 {
		c.GracefulShutdownTimeoutSecs = defaultGracefulShutdownTimeoutSecs
	}
	if c.Logger == nil {
		c.Logger = logging.NewNilLogger()
	}
}
Esempio n. 2
0
func setupServiceConfigDefaults(c *ServiceConfig) {
	if c.RestartDelaySecs == 0 {
		c.RestartDelaySecs = 1
	}
	if c.Logger == nil {
		c.Logger = logging.NewNilLogger()
	}
}