author | Jordan Doyle <jordan@doyle.la> | 2023-06-25 13:21:15.0 +01:00:00 |
---|---|---|
committer | Jordan Doyle <jordan@doyle.la> | 2023-06-25 13:21:15.0 +01:00:00 |
commit | a3e948a934e078a9c9693f8d4ebab91451783d30 [patch] |
|
tree | f85ea79a73789fa90d40ec96fa4fb6279079439a |
|
parent | 57781be5a020057049a7d036e161b7bb1e48fd9c |
|
download | a3e948a934e078a9c9693f8d4ebab91451783d30.tar.gz |
Skip serializing empty environment variables
Diff
src/audit.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/audit.rs b/src/audit.rs index c951d40..59ad985 100644 --- a/src/audit.rs +++ a/src/audit.rs @@ -70,6 +70,7 @@ #[serde(with = "time::serde::rfc3339")] pub ts: OffsetDateTime, pub peer_address: Option<SocketAddr>, #[serde(skip_serializing_if = "Vec::is_empty")] pub environment_variables: Vec<(Box<str>, Box<str>)>, pub events: Vec<AuditLogEvent>, #[serde(skip)]