Skip to content

Commit

Permalink
🔧 Use global config for Net::IMAP.debug
Browse files Browse the repository at this point in the history
  • Loading branch information
nevans committed Jun 10, 2024
1 parent 5086cff commit 080b5aa
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/net/imap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -740,14 +740,12 @@ class IMAP < Protocol
# Returns the global Config object
def self.config; Config.global end

# Returns the debug mode.
def self.debug
return @@debug
end
# Returns the global debug mode.
def self.debug; config.debug end

# Sets the debug mode.
# Sets the global debug mode.
def self.debug=(val)
return @@debug = val
config.debug = val
end

# The default port for IMAP connections, port 143
Expand Down

0 comments on commit 080b5aa

Please sign in to comment.