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