Skip to content

Commit

Permalink
Skip serialize tags is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsanchezq committed Aug 3, 2020
1 parent 78a5c58 commit 15dfd76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vit-servicing-station-lib/src/logging/messages.rs
Expand Up @@ -10,6 +10,7 @@ pub enum LogMessageId {
pub struct LogMessage {
id: LogMessageId,
level: log::Level,
#[serde(skip_serializing_if = "Vec::is_empty")]
tags: Vec<String>,
message: String,
timestamp: i64,
Expand Down

0 comments on commit 15dfd76

Please sign in to comment.