diff options
author | Thomas ten Cate <ttencate@gmail.com> | 2018-09-24T13·10+0200 |
---|---|---|
committer | Vincent Ambo <github@tazj.in> | 2018-09-24T14·03+0200 |
commit | a89be8d715a88af85419b544367e4d74e06c68e6 (patch) | |
tree | 1096e7876032123c575b0076567803983e92604b /src/tests.rs | |
parent | d9569ad80a4b0fd6c4cd80a857df08fca1272980 (diff) |
feat(main): Pass log levels along to Stackdriver
If a priority is present, it is passed as-is into the Stackdriver API. This allows filtering by severity in the logs UI. Conveniently, the levels are the same between journald and Stackdriver. Fixes #11.
Diffstat (limited to 'src/tests.rs')
-rw-r--r-- | src/tests.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tests.rs b/src/tests.rs index 1547855299bf..779add7a7012 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -8,7 +8,8 @@ fn test_text_entry_serialization() { timestamp: None, payload: Payload::TextPayload { text_payload: "test entry".into(), - } + }, + severity: None, }; let expected = "{\"labels\":null,\"textPayload\":\"test entry\"}"; @@ -26,7 +27,8 @@ fn test_json_entry_serialization() { json_payload: json!({ "message": "JSON test" }) - } + }, + severity: None, }; let expected = "{\"labels\":null,\"jsonPayload\":{\"message\":\"JSON test\"}}"; |