Debug level logging of socket audit backend config at startup (#3560)
This commit is contained in:
parent
e1a55161a8
commit
a7af6c4cb7
|
@ -411,6 +411,9 @@ func (c *Core) newAuditBackend(entry *MountEntry, view logical.Storage, conf map
|
|||
|
||||
if c.logger.IsDebug() {
|
||||
c.logger.Debug("audit: adding reload function", "path", entry.Path)
|
||||
if entry.Options != nil {
|
||||
c.logger.Debug("audit: file backend options", "path", entry.Path, "file_path", entry.Options["file_path"])
|
||||
}
|
||||
}
|
||||
|
||||
c.reloadFuncs[key] = append(c.reloadFuncs[key], func(map[string]interface{}) error {
|
||||
|
@ -421,6 +424,18 @@ func (c *Core) newAuditBackend(entry *MountEntry, view logical.Storage, conf map
|
|||
})
|
||||
|
||||
c.reloadFuncsLock.Unlock()
|
||||
case "socket":
|
||||
if c.logger.IsDebug() {
|
||||
if entry.Options != nil {
|
||||
c.logger.Debug("audit: socket backend options", "path", entry.Path, "address", entry.Options["address"], "socket type", entry.Options["socket_type"])
|
||||
}
|
||||
}
|
||||
case "syslog":
|
||||
if c.logger.IsDebug() {
|
||||
if entry.Options != nil {
|
||||
c.logger.Debug("audit: syslog backend options", "path", entry.Path, "facility", entry.Options["facility"], "tag", entry.Options["tag"])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return be, err
|
||||
|
|
Loading…
Reference in New Issue