MOD-13014: hide user data from trace logs by default (fail closed) [8.10] by gabsow · Pull Request #1610 · RedisJSON/RedisJSON · GitHub
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions json_path/src/json_path.rs
4 changes: 2 additions & 2 deletions json_path/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1799,8 +1799,8 @@ mod json_path_tests {
assert!(hide_user_data_from_log());
let hidden = perform_search("$.foo[?@ > 2]", &j);

// Restore the default so other tests observe the verbose behaviour.
set_hide_user_data_from_log(false);
// Restore the hidden-by-default state for any later tests.
set_hide_user_data_from_log(true);

assert_eq!(shown, hidden);
assert_eq!(shown, vec![json!(3), json!(4)]);
Expand Down
12 changes: 7 additions & 5 deletions redis_json/src/lib.rs
Loading