Skip to content
Merged
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
6 changes: 5 additions & 1 deletion lib/systemd/journal/filterable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ def clear_filters

private

def restore_filters(conditions = @reopen_filter_conditions)
# Restore filters from a previously saved set of conditions.
# Note that this cannot be a reference to the existing @reopen_filter_conditions
# as they will be cleared when this method is called.
# # @param [Array] conditions an array of conditions to restore.
def restore_filters(conditions)
clear_filters

conditions.each do |condition|
Expand Down