Move SanitizedConfig back to a shared-ent file. (#11291)
This commit is contained in:
parent
a7c22c7140
commit
c2673ee86a
|
@ -2614,6 +2614,16 @@ func (c *Core) SetConfig(conf *server.Config) {
|
|||
c.logger.Debug("set config", "sanitized config", string(bz))
|
||||
}
|
||||
|
||||
// SanitizedConfig returns a sanitized version of the current config.
|
||||
// See server.Config.Sanitized for specific values omitted.
|
||||
func (c *Core) SanitizedConfig() map[string]interface{} {
|
||||
conf := c.rawConfig.Load()
|
||||
if conf == nil {
|
||||
return nil
|
||||
}
|
||||
return conf.(*server.Config).Sanitized()
|
||||
}
|
||||
|
||||
// LogFormat returns the log format current in use.
|
||||
func (c *Core) LogFormat() string {
|
||||
conf := c.rawConfig.Load()
|
||||
|
|
|
@ -66,16 +66,6 @@ func (c *Core) GetCoreConfigInternal() *server.Config {
|
|||
return conf.(*server.Config)
|
||||
}
|
||||
|
||||
// SanitizedConfig returns a sanitized version of the current config.
|
||||
// See server.Config.Sanitized for specific values omitted.
|
||||
func (c *Core) SanitizedConfig() map[string]interface{} {
|
||||
conf := c.rawConfig.Load()
|
||||
if conf == nil {
|
||||
return nil
|
||||
}
|
||||
return conf.(*server.Config).Sanitized()
|
||||
}
|
||||
|
||||
func (c *Core) teardownReplicationResolverHandler() {}
|
||||
func createSecondaries(*Core, *CoreConfig) {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue