lib/logster/base_store.rb in logster-2.4.0 vs lib/logster/base_store.rb in logster-2.4.1

- old
+ new

@@ -181,16 +181,15 @@ key = self.similar_key(message) similar = get(key, load_env: false) if key end if similar - has_env = !similar.env.nil? && !similar.env.empty? - if similar.count < Logster::MAX_GROUPING_LENGTH && !has_env + if similar.count < Logster::MAX_GROUPING_LENGTH similar.env = get_env(similar.key) || {} end save_env = similar.merge_similar_message(message) - replace_and_bump(similar, save_env: save_env || has_env) + replace_and_bump(similar, save_env: save_env) similar else save message message end