mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Use RFC3339Nano for AuditRequestEntry.Time (#3551)
This commit is contained in:
committed by
GitHub
parent
91d2c05a34
commit
45bae9b685
@@ -146,7 +146,7 @@ func (f *AuditFormatter) FormatRequest(
|
||||
}
|
||||
|
||||
if !config.OmitTime {
|
||||
reqEntry.Time = time.Now().UTC().Format(time.RFC3339)
|
||||
reqEntry.Time = time.Now().UTC().Format(time.RFC3339Nano)
|
||||
}
|
||||
|
||||
return f.AuditFormatWriter.WriteRequest(w, reqEntry)
|
||||
@@ -347,7 +347,7 @@ func (f *AuditFormatter) FormatResponse(
|
||||
}
|
||||
|
||||
if !config.OmitTime {
|
||||
respEntry.Time = time.Now().UTC().Format(time.RFC3339)
|
||||
respEntry.Time = time.Now().UTC().Format(time.RFC3339Nano)
|
||||
}
|
||||
|
||||
return f.AuditFormatWriter.WriteResponse(w, respEntry)
|
||||
|
||||
Reference in New Issue
Block a user