Skip to content

Commit

Permalink
Merge pull request #2709 from mhashizume/FACT-3174/main/log-debugonce
Browse files Browse the repository at this point in the history
Use Set instead of Array for warn & debug messages
  • Loading branch information
tvpartytonight authored May 8, 2024
2 parents 21b6eaf + 436be42 commit 1d46692
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/facter/framework/logging/logger.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require 'logger'
require 'set'

module Facter
RED = "\e[31m"
Expand All @@ -15,8 +16,8 @@ class Log
@@logger = nil
@@message_callback = nil
@@has_errors = false
@@debug_messages = []
@@warn_messages = []
@@debug_messages = Set.new
@@warn_messages = Set.new
@@timing = false

class << self
Expand Down

0 comments on commit 1d46692

Please sign in to comment.